Skip to content

Commit 547ed73

Browse files
uniformize K-NN
1 parent c6a13dd commit 547ed73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/classification2.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1249,7 +1249,7 @@ does this by first finding the $K$ points in the training data nearest
12491249
to the new observation, and then returning the majority class vote from those
12501250
training observations. We can tune and evaluate a classifier by splitting the data randomly into a
12511251
training and test data set. The training set is used to build the classifier,
1252-
and we can tune the classifier (e.g., select the number of neighbors in $K$-NN)
1252+
and we can tune the classifier (e.g., select the number of neighbors in K-NN)
12531253
by maximizing estimated accuracy via cross-validation. After we have tuned the
12541254
model we can use the test set to estimate its accuracy.
12551255
The overall process is summarized in Figure \@ref(fig:06-overview).

0 commit comments

Comments
 (0)