Assumes fit contains the following (returned from trainControl):
traininData data used for training, with .outcome as the classification label column name
fintalMode the retrained, final model using selected lamba from cross-validation
bestTune values of selected hyperparameter during cross-validation (i.e, labmda value)
1 | getModelStruct(fit)
|
fit |
logit fit |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.