File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -724,7 +724,6 @@ and set `neighbors = tune()` to tell `tidymodels` to tune the number of neighbor
724
724
sacr_recipe <- recipe(price ~ sqft + beds, data = sacramento_train) |>
725
725
step_scale(all_predictors()) |>
726
726
step_center(all_predictors())
727
-
728
727
sacr_spec <- nearest_neighbor(weight_func = "rectangular",
729
728
neighbors = tune()) |>
730
729
set_engine("kknn") |>
@@ -746,7 +745,6 @@ sacr_multi <- workflow() |>
746
745
747
746
sacr_k <- sacr_multi |>
748
747
pull(neighbors)
749
-
750
748
sacr_multi
751
749
```
752
750
@@ -784,6 +782,7 @@ knn_mult_preds <- knn_mult_fit |>
784
782
785
783
knn_mult_mets <- metrics(knn_mult_preds, truth = price, estimate = .pred) |>
786
784
filter(.metric == 'rmse')
785
+
787
786
knn_mult_mets
788
787
```
789
788
You can’t perform that action at this time.
0 commit comments