Description Usage Arguments Details Value Examples
This function will also remove models that have NA value in resampled performance. a.k.a NA value in modelCor function output. Mainly based on modelCor function in caret.
1 | ml_cor_filter(models, cor_level = 0.9)
|
models |
A list of caret models generated from ml_list function or by combining caret models into a list manually. |
cor_level |
A numeric, the maximum inter-model correlation computed from modelCor function from caret package. |
What the function does is to first get rid of model performance with missing values. Second, filter models based on cor_level, which is to get rid of the models with high correlation.
A list of caret models that its performance metrics from cross-validation satisfy the conditions.
1 2 3 4 5 6 7 8 | ## Not run:
# a maximum of correlation 0.9 between models.
low_cor_models_churn=testmodels_churn%>%ml_cor_filter(cor_level = 0.9)
# a maximum of correlation 0.7 between models.
low_cor_models_churn=testmodels_churn%>%ml_cor_filter(cor_level = 0.7)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.