Dataset: Concrete measured on 8 sets of properties. ~4000 data points.
Known: under ideal condition, value of 8 properties for 10 different types of concrete.
I think image well explains the question if my words are confusing. Black = idea condition. Red = points who's category need to be identified.
from sklearn.neighbors import KNeighborsClassifier knn = KNeighborsClassifier(n_neighbors=8) knn.fit(X_train, y_train) pred = knn.predict(X_test)
If i understand correctly, it would be acceptable to: X_train will be array of 8 by 10 and Y_train will be array of 1 by 10. Is this correct.