Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

knn: fix incorrect label updating in building kdtree #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

knn: fix incorrect label updating in building kdtree #3

wants to merge 1 commit into from

Conversation

anonymouss
Copy link

Fix issue #2

Test Result:

iris = load_iris()
iris_data = iris.data
iris_label = iris.target
X_train, X_test, y_train, y_test = train_test_split(iris_data, iris_label, test_size=0.2)
model = KNNKdTree()
model.fit(X_train, y_train)
model.score(X_test, y_test)

Out[8]: 0.9666666666666667

Change-Id: I74740ae3ad13c2aede8e752e7dfbf2ece0d1bbc1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant