Part 3: KNN
iris = datasets.load_iris() X = iris.data[:, :2] y = iris.target from sklearn.neighbours import KNeighbourClassifier classifier = KNeighbourClassifier(n_neighbour=3) classifier.fit(X, y)
Need a fast expert's response?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments
Leave a comment