From 832da8bcba49a3377bbdee696e75a37b56310d23 Mon Sep 17 00:00:00 2001 From: MMJansen Date: Thu, 26 Aug 2021 11:23:40 +0200 Subject: [PATCH] Update 08-feature-engineering.Rmd Added in chunk engineering-summary of chapter summary the definition of lm_model ( lm_model <- linear_reg() %>% set_engine("lm") ). i think it was forgotten. Without it the workflow code cannot run. --- 08-feature-engineering.Rmd | 2 ++ 1 file changed, 2 insertions(+) diff --git a/08-feature-engineering.Rmd b/08-feature-engineering.Rmd index ccabd463..8ec403e7 100644 --- a/08-feature-engineering.Rmd +++ b/08-feature-engineering.Rmd @@ -560,6 +560,8 @@ ames_split <- initial_split(ames, prop = 0.80, strata = Sale_Price) ames_train <- training(ames_split) ames_test <- testing(ames_split) +lm_model <- linear_reg() %>% set_engine("lm") + ames_rec <- recipe(Sale_Price ~ Neighborhood + Gr_Liv_Area + Year_Built + Bldg_Type + Latitude + Longitude, data = ames_train) %>%