An object with class "model_fit" is a container for information about a model that has been fit to the data.
The main elements of the object are:
lvl: A vector of factor levels when the outcome is
is a factor. This is
NULL when the outcome is not a factor
fit: The object produced by the fitting function.
preproc: This contains any data-specific information
required to process new a sample point for prediction. For
example, if the underlying model function requires arguments
y and the user passed a formula to
object would contain items such as the terms object and so on.
When no information is required, this is
As discussed in the documentation for
original arguments to the specification are saved as quosures.
These are evaluated for the
model_fit object prior to fitting.
If the resulting model object prints its call, any user-defined
options are shown in the call preceded by a tilde (see the
example below). This is a result of the use of quosures in the
This class and structure is the basis for how parsnip stores model objects after to seeing the data and applying a model.
1 2 3 4 5 6 7 8 9 10
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.