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"
)cut_vec for transform_df_fixed
training set to be used for calculate the cut vector
Predefined quantiles to convert continuous variables to categorical ones. (Default: c(0, 0.05, 0.2, 0.8, 0.95, 1)) Available if categorize = "quantile".
The max number of cluster (Default: 5). Available if categorize = "kmeans".
Methods for categorize continuous variables. Options include "quantile" or "kmeans" (Default: "quantile").