python - 以下xgboost模型 TreeMap 中 'leaf'的值是什么意思?

标签 python machine-learning random-forest decision-tree xgboost

enter image description here

鉴于上述( Twig )条件存在,我猜测这是条件概率。不过我不是很清楚。

如果您想阅读更多有关所用数据的信息或我们如何获得此图表,请访问:http://machinelearningmastery.com/visualize-gradient-boosting-decision-trees-xgboost-python/

最佳答案

对于具有 2 个类 {0,1} 的分类树,叶节点的值表示类 1 的原始分数。可以使用逻辑函数将其转换为概率分数。下面的计算以最左边的叶子为例。

1/(1+np.exp(-1*0.167528))=0.5417843204057448

这意味着如果一个数据点最终被分配到这个叶子,这个数据点是 1 类的概率是 0.5417843204057448。

关于python - 以下xgboost模型 TreeMap 中 'leaf'的值是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40926340/

相关文章:

python - 表征股票市场神经网络的 Keras 损失和准确性

Python - 随机森林 - 迭代添加树

machine-learning - scikit-learn 中多标签模型的得分优于具有二进制标签的相同模型

python - Unresolved 导入 :reactor in PyDev with twisted module

python - Pandas Dataframe - 如何检查 A 列中的字符串值是否在 B 列中的字符串项列表中可用

python - 如何在 Python 中初始化元组子类的实例?

python - 在 __getattr__ 中格式化 AttributeError

python - 谷歌实验室 : misleading information about its GPU (only 5% RAM available to some users)

machine-learning - 使用 TensorFlow 进行图像相似度检测

r - H2O 中的集成(随机森林)-多项分布