View source: R/GenerateModelPredictions.R
This function bins model predictions and converts them from character labels to numeric labels.
1 2 3 |
data |
The study data frame. No default |
n_cores |
Number of cores to be used in parallel gridsearch. Passed to bin.models (which, in turn, passes to SupaLarna::gridsearch.breaks). As integer. Defaults to 2 (in gridsearch.breaks) |
return_cps |
Logical. Function returns model cut_points if TRUE. Passed to bin.models. Defaults to TRUE. |
log |
Logical. If TRUE progress is logged in logfile. Defaults to FALSE. |
boot |
Logical. Affects only what is printed to logfile. If TRUE prepped_sample is assumed to be a bootstrap sample. Defaults to FALSE. |
write_to_disk |
Logical. If TRUE the prediction data is saved as RDS to disk. Defaults to FALSE. |
clean_start |
Logical. If TRUE the predictions directory and all files in it are removed before saving new stuff there. Defaults to FALSE. |
gridsearch_parallel |
Logical. Passed to bin.models (which, in turn, passes to SupaLarnas gridsearch.breaks). If TRUE the gridsearch is performed in parallel. Defaults to FALSE. |
is_sample |
Logical. Passed to bin.models. If TRUE, only a tenth of possible cut points is searched. Defaults to TRUE. |
clean_start |
Logical. If TRUE the predictions directory and all files in it are removed before saving new stuff there. Defaults to FALSE. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.