View source: R/kerasnip_spec_methods.R
| fit.kerasnip_spec | R Documentation |
S3 method for fit() dispatched on kerasnip_spec objects. Delegates to
the standard parsnip fit.model_spec() and then tags the result with the
kerasnip_model_fit class so that predict.kerasnip_model_fit() is
dispatched on subsequent calls.
kerasnip_spec is stripped from the class before NextMethod() to prevent
parsnip's internal specific_model() helper from returning more than one
model-class entry, which would break registry lookups. The custom metadata
attributes remain on the object and are thus stored inside the resulting
model_fit$spec.
## S3 method for class 'kerasnip_spec'
fit(object, ...)
object |
A |
... |
Passed to |
A model_fit object with the additional kerasnip_model_fit class
prepended to its class vector.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.