model_roc | R Documentation |
model_roc() returns the ROC curve by calculating the true positive rate (TPR) and false positive rate (FPR), as well as the area under the curve. The graph allows you to evaluate the discrimination capacity of the model.
model_roc(y_train, y_train_prob, y_test, y_test_prob)
y_train |
Values of the response variable in training set. |
y_train_prob |
Probabilities of the response variable in training set. |
y_test |
Values of the response variable in test set. |
y_test_prob |
Probabilities of the response variable in test set. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.