Package for interpreting scikit-learn's decision tree and random
forest predictions. Allows decomposing each prediction into bias and
feature contribution components as described in
http://blog.datadive.net/interpreting-random-forests/. For a dataset
with n features, each prediction on the dataset is decomposed as
prediction = bias + feature_1_contribution + ... +
feature_n_contribution.
试试这个:
http://blog.datadive.net/random-forest-interpretation-with-scikit-learn/
另一个解决方案是lime,它将解释预测特征的权重,并使用matplotlib对预测进行可视化解释,该库可以轻松地与jupyter(ipython)笔记本电脑集成。在
相关问题 更多 >
编程相关推荐