请问有没有办法让Caret在二分类问题中使用RMSE?
如果你尝试在分类问题中使用metric = "RMSE"
,你会收到以下错误信息:
Error in train.default(x, y, weights = w, ...) :
Metric RMSE not applicable for classification models
这是有道理的。但是否有一种方法定义自定义度量标准?例如,如果您的结果为
0
或1
,则可以将误差定义为outcome - p
,其中p
是模型预测的概率。编辑====================
为了更好地理解并且了解使用这个措施的原因,请参考Michael J. Procopio的An Experimental Analysis of Classifier Ensembles for Learning Drifting Concepts Over Time in Autonomous Outdoor Robot Navigation中的2.7.1章节,或者softclassval论文。