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: r/2021-07-21-ml-knn.rmd
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ We will train a [k-Nearest Neighbors (kNN)](https://parsnip.tidymodels.org/refer
14
14
15
15
###Display training and test splits
16
16
17
-
We get the synthetic data that form the shape of a moon. We then split it into a training and testing set. data that form the shape of a moon. We then split it into a training and testing set. Finally, we display the ground truth labels using[a scatter plot](https://plotly.com/r/line-and-scatter/).
17
+
Using Tidymodels, we first generate synthetic data that form the shape of a moon. We then split it into a training and testing set. Finally, we display the ground truth labels using[a scatter plot](https://plotly.com/r/line-and-scatter/).
18
18
19
19
In the graph, we display all the negative labels as squares, and positive labels as circles. We differentiate the training and test set by adding a dot to the center of test data.