rang_roc_cut | R Documentation |
Calls roc_cut()
for a fitted ranger model. See roc_cut()
for details. Requires
probability = TRUE
to be used when the ranger model was fitted.
rang_roc_cut(rf, actual, class_name = NULL, plot = TRUE)
rf |
A ranger fitted model. |
actual |
A binary class target vector matching |
class_name |
String giving name of the class predicted in |
plot |
Produce a plot. Defaults to |
The rf$predictions
is a matrix with columns for each class. The class corresponding to
the predictions in actual
can be named in class_name
. Default is to select the "maximum"
column name i.e. "TRUE" if classes are TRUE/FALSE and the largest number if numeric.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.