Closed Wenchao-Yang closed 7 years ago
Create a class called KNN. The implementation will mimic the KNeighborsClassifier in scikit-learn.
See the following website for detail http://scikit-learn.org/stable/modules/generated/sklearn.neighbors.KNeighborsClassifier.html#sklearn.neighbors.KNeighborsClassifier.fit
Note: The attributes/methods defined above are all public. Private attributes/methods should start with single underscore.
Done
Create a class called KNN. The implementation will mimic the KNeighborsClassifier in scikit-learn.
See the following website for detail http://scikit-learn.org/stable/modules/generated/sklearn.neighbors.KNeighborsClassifier.html#sklearn.neighbors.KNeighborsClassifier.fit
Note: The attributes/methods defined above are all public. Private attributes/methods should start with single underscore.