3 ms·
> There really is an observable upper-bound on if-then performance. Only on if-else chains you can code by hand. There's a lot of machine learning methods tha
by TeMPOraL 3y ago
> There really is an observable upper-bound on if-then performance.
Only on if-else chains you can code by hand.
There's a lot of machine learning methods that can be seen as using data to generate large networks of if-else decision points. There are methods that perform (a discrete simulation of) continuous generalization of if-else chains. And fundamentally, if-else chains with a loop thrown in the mix is a Turing-complete system, so it can do anything.
The problem here is that if-else chains are a really inefficient way for humans to model reality with. We can do much better with different approaches and abstractions, but since they all are equivalent to a finite sequence of if-else branches, it's not the if-else where the problem is - it's our own cognitive capacity.
- disgruntledphd2 3y agoYeah, XGBoost (and all tree methods) are basically if-else on steroids.