【发布时间】:2020-07-12 09:56:51
【问题描述】:
我在 R 中对我的数据运行了一个初始随机森林模型,并尝试计算特征重要性统计数据。出于某种原因,我的 IncNodePurity 度量都是 0。知道为什么会发生这种情况,或者我做错了什么吗?谢谢
rf<- randomForest(target~.,
data=train,importance=TRUE,proximity=TRUE)
round(importance(rf),2)
结果:
%IncMSE IncNodePurity
age 1.82 0.00
income 6.89 0.00
education -0.12 0.00
car_ownership 0.99 0.00
health_metric 10.34 0.00
谢谢!
【问题讨论】:
标签: r machine-learning random-forest gbm