orbital_dt {orbital} | R Documentation |
Convert to data.table code
Description
Returns data.table code that is equivilant to prediction code.
Usage
orbital_dt(x)
Arguments
x |
An orbital object. This function requires dtplyr to be
installed to run. The resulting code will likely need to be adopted to your
use-case. Most likely by removing the initial |
Value
data.table code.
Examples
library(workflows)
library(recipes)
library(parsnip)
rec_spec <- recipe(mpg ~ ., data = mtcars) %>%
step_normalize(all_numeric_predictors())
lm_spec <- linear_reg()
wf_spec <- workflow(rec_spec, lm_spec)
wf_fit <- fit(wf_spec, mtcars)
orbital_obj <- orbital(wf_fit)
orbital_dt(orbital_obj)
[Package orbital version 0.2.0 Index]