In machine learning ensemble tree models such as random forest are common. This models consist of an ensemble of so called decision tree models. How can we analyse, however, what those models have specifically learned?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
You cannot in this sense in what you can just plot simple decision tree. Only extremely simple models can be easily investigated. More complex methods require more complex tools, which are just approximations, general ideas of what to look for. So for ensembles you can try to look at some expectation of property of a single model. For example you can look for some feature importances measures, which shows you which features are used to make prediction to same extent. You will not get a simple if/else structure, this is simply impossible, but some fuzzy idea. For RF you can take out feature importances which is more or less expected fraction of samples which actually "hit" a decision node considering a particular feature.