Decision trees – the unreasonable power of nested decision rules
- srean - 36121 sekunder sedanA 'secret weapon' that has served me very well for learning classifiers is to first learn a linear classifier. I am almost hesitant to give it away (kidding).
Then use the non-thresholded version of that linear classifier output as one additional feature dimension over which you learn a decision tree. Then wrap this whole thing up as a boosted tree.
One of the reasons why it works so well, is that it plays to their strengths:
(i) Decision trees have a hard time fitting linear functions (they have to stair-step a lot) and
(ii) linear functions are terrible where equi-label regions have a partitioned structure.
One could also consider different rotations of the data to form a forest of trees build using steps above, but was usually not necessary.
One place were DT struggle is when the features themselves are very sparse.
- lokimedes - 39158 sekunder sedanWhen I worked at CERN around 2010, Boosted Decision Trees were the most popular classifier, exactly due to the (potential for) explainability along with its power of expression. We had a cultural aversion for neural networks back then, especially if the model was used in physics analysis directly. Times have changed…
- huqedato - 32398 sekunder sedanRandom forests on the same site: https://mlu-explain.github.io/random-forest/
- fooker - 43568 sekunder sedanFun fact - single bit neural networks are decision trees.
In theory, this means you can 'compile' most neural networks into chains of if-else statements but it's not well understood when this sort of approach works well.
- jebarker - 21510 sekunder sedanThe killer feature of DTs is how fast they can be. I worked very hard on a project to try and replace DT based classifiers with small NNs in a low latency application. NNs could achieve non-trivial gains in classification accuracy but remained two orders of magnitude higher latency at inference time.
- zelphirkalt - 41117 sekunder sedanDecision trees are great. My favorite classical machine learning algorithm or group of algorithms, as there are many slight variations of decision trees. I wrote a purely functional (kind of naive) parallelized implementation in GNU Guile: https://codeberg.org/ZelphirKaltstahl/guile-ml/src/commit/25...
Why "naive"? Because there is no such thing as NumPy or data frames in the Guile ecosystem to my knowledge, and the data representation is therefore probably quite inefficient.
- hkbuilds - 5917 sekunder sedanDecision trees are underrated in the age of deep learning. They're interpretable, fast, and often good enough.
I've been using a scoring system for website analysis that's essentially a decision tree under the hood. Does the site have a meta description? Does it load in under 3 seconds? Is it mobile responsive? Each check produces a score, the tree aggregates them. Users understand why they got their score because the logic is transparent.
Try explaining why a neural network rated their website 73/100. Decision trees make that trivial.
- kqr - 40943 sekunder sedanExperts' nebulous decision making can often be modelled with simple decision trees and even decision chains (linked lists). Even when the expert thinks their decision making is more complex, a simple decision tree better models the expert's decision than the rules proposed by the experts themselves.
I've long dismissed decision trees because they seem so ham-fisted compared to regression and distance-based clustering techniques but decision trees are undoubtedly very effective.
See more in chapter seven of the Oxford Handbook of Expertise. It's fascinating!
- ayhanfuat - 22218 sekunder sedanI am surprised r2d3's visual intro is not referenced here (https://r2d3.us/visual-intro-to-machine-learning-part-1/). I think it was the first (if not first, maybe most impactful) example for scroll triggered explainers.
- getpokedagain - 29614 sekunder sedanI worked (professionally) on a product a few years ago based upon decision tree and random forest classifiers. I had no background in the math and had to learn this stuff which has payed dividends as llms and AI have become hyped. This is one of the best explanations I've seen and has me super nostalgic for that project.
Gonna try to cook up something personal. It's amazing how people are now using regression models basically all the time and yet no-one uses these things on their own.
- xmprt - 47819 sekunder sedanInteresting website and great presentation. My only note is that the color contrast of some of the text makes it hard to read.
- ssttoo - 13077 sekunder sedanI just wish we’d stop with the “unreasonable” click-bite. Cheapens an otherwise excellent article, like “7 x (number 6 will surprise you)” of yesteryear
- - 19978 sekunder sedan
- moi2388 - 43650 sekunder sedanThat was beautifully presented!
- EGreg - 30327 sekunder sedanIsn’t that exactly how humans (and even animals) operate?
Human societies look for actual major correlations and establish classifications. Except with scientific-minded humans, we often also want, to know the why behind the correlations. David Hume got involved w that… https://brainly.com/question/50372476
Let me ask a provocative question. What, ultimately, is the difference between knowledge and bias?
- Jaxon_Varr - 47760 sekunder sedan[dead]
- bobek - 12707 sekunder sedanWow. This page is actually a product of LLM [0]. So they can produce useful stuff after all :)
Nördnytt! 🤓