Nothing
Code
workflow()
Output
== Workflow ====================================================================
Preprocessor: None
Model: None
Code
add_recipe(workflow(), rec)
Output
== Workflow ====================================================================
Preprocessor: Recipe
Model: None
-- Preprocessor ----------------------------------------------------------------
0 Recipe Steps
Code
add_formula(workflow(), y ~ x)
Output
== Workflow ====================================================================
Preprocessor: Formula
Model: None
-- Preprocessor ----------------------------------------------------------------
y ~ x
Code
add_variables(workflow(), y, c(x1, x2))
Output
== Workflow ====================================================================
Preprocessor: Variables
Model: None
-- Preprocessor ----------------------------------------------------------------
Outcomes: y
Predictors: c(x1, x2)
Code
add_model(workflow(), model)
Output
== Workflow ====================================================================
Preprocessor: None
Model: linear_reg()
-- Model -----------------------------------------------------------------------
Linear Regression Model Specification (regression)
Computational engine: lm
Code
add_model(workflow(), model)
Output
== Workflow ====================================================================
Preprocessor: None
Model: linear_reg()
-- Model -----------------------------------------------------------------------
Linear Regression Model Specification (regression)
Main Arguments:
penalty = 0.01
Engine-Specific Arguments:
dfmax = 5
Computational engine: glmnet
Code
fit(workflow, mtcars)
Output
== Workflow [trained] ==========================================================
Preprocessor: Formula
Model: linear_reg()
-- Preprocessor ----------------------------------------------------------------
mpg ~ cyl
-- Model -----------------------------------------------------------------------
Call:
stats::lm(formula = ..y ~ ., data = data)
Coefficients:
(Intercept) cyl
37.885 -2.876
Code
add_recipe(workflow(), rec)
Output
== Workflow ====================================================================
Preprocessor: Recipe
Model: None
-- Preprocessor ----------------------------------------------------------------
11 Recipe Steps
* step_log()
* step_log()
* step_log()
* step_log()
* step_log()
* step_log()
* step_log()
* step_log()
* step_log()
* step_log()
* ...
* and 1 more step.
Code
add_recipe(workflow(), rec)
Output
== Workflow ====================================================================
Preprocessor: Recipe
Model: None
-- Preprocessor ----------------------------------------------------------------
12 Recipe Steps
* step_log()
* step_log()
* step_log()
* step_log()
* step_log()
* step_log()
* step_log()
* step_log()
* step_log()
* step_log()
* ...
* and 2 more steps.
Code
workflow
Output
== Workflow ====================================================================
Preprocessor: None
Model: None
-- Case Weights ----------------------------------------------------------------
disp
Code
workflow
Output
== Workflow ====================================================================
Preprocessor: Formula
Model: linear_reg()
-- Preprocessor ----------------------------------------------------------------
mpg ~ .
-- Case Weights ----------------------------------------------------------------
disp
-- Model -----------------------------------------------------------------------
Linear Regression Model Specification (regression)
Computational engine: lm
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.