Skip to content

Commit

Permalink
Update source/regression2.Rmd
Browse files Browse the repository at this point in the history
Co-authored-by: Joel Ostblom <[email protected]>
  • Loading branch information
trevorcampbell and joelostblom authored Nov 15, 2023
1 parent f42a768 commit 2b821ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/regression2.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ obtained from the same problem, shown in Figure \@ref(fig:08-compareRegression).

```{r 08-compareRegression, echo = FALSE, warning = FALSE, message = FALSE, fig.height = 4.75, fig.width = 10, fig.cap = "Comparison of simple linear regression and KNN regression."}
set.seed(1234)
# neighbors = 28 from regression1 chapter
# neighbors = 52 from regression1 chapter
sacr_spec <- nearest_neighbor(weight_func = "rectangular", neighbors = 52) |>
set_engine("kknn") |>
set_mode("regression")
Expand Down

0 comments on commit 2b821ff

Please sign in to comment.