2
我如何計算護林模型AUC值?遊俠是R的快速實現隨機森林算法我使用下面的代碼來構建分類目的遊俠模型,從模型得到的預測:如何計算遊俠RF模型的AUC值?
#Build the model using ranger() function
ranger.model <- ranger(formula, data = data_train, importance = 'impurity',
write.forest = TRUE, num.trees = 3000, mtry = sqrt(length(currentComb)),
classification = TRUE)
#get the prediction for the ranger model
pred.data <- predict(ranger.model, dat = data_test,)
table(pred.data$predictions)
但我不知道如何計算AUC值
任何想法?
謝謝你這麼多阿爾喬姆 – user2947767