Question 35
Consider the following code snippet:
from sklearn.neighbors import KNeighborsClassifier
X_train = [[1, 2], [3, 4], [5, 6]]y_train = [0, 1, 0]
knn = KNeighborsClassifier(n_neighbors=3)knn.fit(X_train, y_train)What will be the output of the following code:
print(len(knn.classes_))