决策树可视化 [英] Decision Tree Visualization
问题描述
在决策树可视化中,我得到的结果不一致.在叶子的末尾有是"预测,但是在右侧的统计信息"部分中,预测为否".是否有此解决方案或更好的可视化方法?
In the Decision Tree visualization I'm getting inconsistent results. At the end of a leaf, there are Yes predictions, but in the statistics section on the right the prediction is No. Is there a fix for this or a better way to visualize it?
谢谢
约翰
推荐答案
您能检查一下随机种子是否设置为固定数量以确保结果的可重复性吗?
Could you check to see if the random seed is set to a fixed number to ensure reproducibility of your result?
对于随机数种子,可以选择输入非负整数作为随机种子值.指定种子可确保在具有相同数据和参数的运行之间具有可重复性.
For Random number seed, optionally type a non-negative integer to use as the random seed value. Specifying a seed ensures reproducibility across runs that have the same data and parameters.
随机种子默认情况下设置为0,这意味着初始种子值是从系统时钟获得的.使用随机种子连续运行会产生不同的结果.
The random seed is set by default to 0, which means the initial seed value is obtained from the system clock. Successive runs using a random seed can have different results.
此致,
Jaya
Regards,
Jaya
这篇关于决策树可视化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!