You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/classification1.Rmd
+3-4Lines changed: 3 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -460,6 +460,7 @@ the $K=5$ neighbors that are nearest to our new point.
460
460
You will see in the `mutate` \index{mutate} step below, we compute the straight-line
461
461
distance using the formula above: we square the differences between the two observations' perimeter
462
462
and concavity coordinates, add the squared differences, and then take the square root.
463
+
In order to find the $K=5$ nearest neighbors, we will use the `slice_min` function. \index{slice\_min}
463
464
464
465
```{r 05-multiknn-1, echo = FALSE, fig.height = 3.5, fig.width = 4.5, fig.pos = "H", out.extra="", fig.cap="Scatter plot of concavity versus perimeter with new observation represented as a red diamond."}
0 commit comments