View source: R/GridSearchBreaks.R
1 2 3 4 |
predictions |
Numeric vector. Predicted probabilites. No default. |
outcome |
Numeric vecotr. The outcome of interest. No default. |
grid |
Numeric vector. All values to be combined and searched. Defaults to seq(0.01, 0.99, 0.01). |
n.breaks |
Numeric vector of length 1. The number of breaks in the predicted probabilites, i.e. cut-points. Defaults to 3. |
loss.function |
Character vector of length 1. The name of the loss metric, e.g. auc. For now any performance measure included in ROCR is accepted. Defaults to "auc". |
sample |
Logical. If TRUE loss is only calculated for 10 \itemparallelLogical. If TRUE the gridsearch is done in parallel. Defaults to FALSE. \itemn.coresNumeric vector of length 1. The number of cores to use for parallel computing. Defaults to NULL. \itemsave.plotLogical. If TRUE a wireframe plot is saved to disk. Defaults to FALSE. \itemverboseLogical. If TRUE then information is printed as the gridsearch runs. Defaults to FALSE. Currently ignored. \itemmaximiseLogical. If TRUE, grid search maximizes performance metric. Defaults to TRUE. |
Performs a gridsearch to identify breaks to optimise a provided loss function
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.