[英]XGBOOST-Multi class prediction. Prediction matrix is set of probabilities for classes. How to perform confusion matrix
[英]How to get which result satisfy from confusion matrix prediction
由於您構建了混淆矩陣,因此我確定您已經有了測試標簽。 只需找到與MVP類相對應的測試標簽的索引即可。 在測試數據中使用這些索引來查找播放器的名稱。 您的代碼應如下所示:
index<-which(test_label==1, arr.ind = TRUE) # assuming 1 is the class label for MVP
for iter in 1:dim(index)[1]{
print(test_data[index[iter],])
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.