排序
Error in confusionMatrix,default(as.factor(y pred label)reference = as.factorly label): The data must contain some levels that overlap the reference…
【报错原因】 DCA绘图里:y_pred_label <- as.numeric(y_pred_score > thresh)cm <- confusionMatrix(as.factor(y_pred_label), reference = as.factor(y_label))$table 【解决方法】 ...