standard   53885.   
## 2 rsq     standard       0.568
```

]

---
class: middle, center


# `nearest_neighbor()`

Specifies a KNN model



```r
nearest_neighbor(neighbors = 1)
```

---
class: your-turn

# Your turn 8

Write *another* pipe to create a model that uses the kknn package to fit a K nearest neighbors model. Use `fit_split()` and `collect_metrics()` to compare the RMSE here to our other models with the same formula- which is better?

*Hint: you'll need https://tidymodels.github.io/parsnip/article