Skip to content

Commit 1b7788e

Browse files
reverting n_neighbors change
1 parent 797a353 commit 1b7788e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/classification2.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -931,7 +931,7 @@ for i in range(1, 5):
931931
)
932932
933933
# fit the model on the sub-training data
934-
knn = KNeighborsClassifier(n_neighbors=1)
934+
knn = KNeighborsClassifier(n_neighbors=3)
935935
X = cancer_subtrain[["Smoothness", "Concavity"]]
936936
y = cancer_subtrain["Class"]
937937
knn_pipeline = make_pipeline(cancer_preprocessor, knn).fit(X, y)

0 commit comments

Comments
 (0)