View source: R/kerasnip_spec_methods.R
| fit_xy.kerasnip_spec | R Documentation |
S3 method for fit_xy() dispatched on kerasnip_spec objects. Workflows
route through fit_xy rather than fit, so this method ensures the
kerasnip_model_fit class is attached in the workflow fitting path as well.
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_xy(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.