extract_inner_model | R Documentation |
Extract the inner model of a nested_model
object, or a workflow
containing a nested model.
extract_inner_model(x, ...)
## Default S3 method:
extract_inner_model(x, ...)
## S3 method for class 'nested_model'
extract_inner_model(x, ...)
## S3 method for class 'workflow'
extract_inner_model(x, ...)
## S3 method for class 'model_spec'
extract_inner_model(x, ...)
x |
A model spec or workflow. |
... |
Not used. |
A model_spec
object
library(parsnip)
model <- linear_reg() %>%
set_engine("lm") %>%
nested()
extract_inner_model(model)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.