Random Forests - Probability Estimates (+scikit-learn specific)

前端 未结 2 1051
被撕碎了的回忆
被撕碎了的回忆 2021-02-06 08:14

I am interested in understanding how probability estimates are calculated by random forests, both in general and specifically in Python\'s scikit-learn library (where probabilit

2条回答
  •  南旧
    南旧 (楼主)
    2021-02-06 09:16

    In addition to what Andreas/Dougal said, when you train the RF, turn on compute_importances=True. Then inspect classifier.feature_importances_ to see which features are occurring high-up in the RF's trees.

提交回复
热议问题