Question: How to calculate the AUC value for a ranger RF model ?
0
gravatar for debitboro
2.8 years ago by
debitboro180
Belgium
debitboro180 wrote:

Hi Biostars community,

How can I calculate the AUC value for a ranger model ? Ranger is a fast implementation of randomForest algorithm in R. I'm using the following code to build the ranger model for classification purposes, and get the prediction from the model:

#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)

But I dont know how to calculate the AUC value

Any idea ?

ADD COMMENTlink modified 12 months ago by Researcher50 • written 2.8 years ago by debitboro180
0
gravatar for Researcher
12 months ago by
Researcher50
Researcher50 wrote:

Hi debitboro, By any chance, did you get this answer?

ADD COMMENTlink modified 12 months ago • written 12 months ago by Researcher50
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1015 users visited in the last hour