我尝试遵循https://machinelearningmastery.com/tune-machine-learning-algorithms-in-r/上的示例代码,但是我的输出未显示出准确性和kappa sd。我想念什么?我的插入符号库是Windows 10 Pro上的3.5.2。
我的输出是:
Random Forest
208 samples
60 predictor
2 classes: 'M', 'R'
No pre-processing
Resampling: Cross-Validated (10 fold, repeated 3 times)
Summary of sample sizes: 186, 187, 188, 187, 188, 187, ...
Resampling results:
Accuracy Kappa
0.8376335 0.6712345
答案 0 :(得分:0)
在本教程中,未指定如何获取带有SD的输出。实际上,不只是rf_default
。相反,
rf_default$results
# mtry Accuracy Kappa AccuracySD KappaSD
# 1 7.745967 0.8376335 0.6712345 0.07038106 0.1426329