get_cut_vec | R Documentation |
Internal function: Calculate cut_vec from the training set (AutoScore Module 2)
get_cut_vec( df, quantiles = c(0, 0.05, 0.2, 0.8, 0.95, 1), max_cluster = 5, categorize = "quantile" )
df |
training set to be used for calculate the cut vector |
quantiles |
Predefined quantiles to convert continuous variables to categorical ones. (Default: c(0, 0.05, 0.2, 0.8, 0.95, 1)) Available if |
max_cluster |
The max number of cluster (Default: 5). Available if |
categorize |
Methods for categorize continuous variables. Options include "quantile" or "kmeans" (Default: "quantile"). |
cut_vec for transform_df_fixed
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.