Extracts the method name associated with a single train object. Note that for standard models (i.e. those already prespecified by caret), the "method" attribute on the train object is used directly while for custom models the "method" attribute within the model$modelInfo attribute is used instead.
a single caret train object
Name associated with model
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.