This function bins model predictions using SupaLarnas gridsearch.breaks function.
1 2 |
predictions |
A numeric vector of predicted probabilites. No default. |
outcome |
A numeric vector of 0 and 1. No default. |
n_cores |
Number of cores to be used in parallel gridsearch. Passed to SupaLarna::gridsearch.breaks. As integer. Defaults to 2 (in gridsearch.breaks) |
grid |
All values to be combnd in gridsearch.breaks, i.e. used to find optimal cutpoints. No default. |
return_cps |
Logical. Function returns model cut_points if TRUE. Defaults to TRUE. |
gridsearch_parallel |
Logical. If TRUE the gridsearch is performed in parallel. Defaults to FALSE. |
is_sample |
Logical. If TRUE, only a tenth of possible cut points is searched. Defaults to TRUE. |
maximise |
Logical. If TRUE, grid search maximises performance metric. Passed to SupaLarna::gridsearch.breaks. Defaults to TRUE. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.