SmallVagetable / machine_learning_python

通过阅读网上的资料代码,进行自我加工,努力实现常用的机器学习算法。实现算法有KNN、Kmeans、EM、Perceptron、决策树、逻辑回归、svm、adaboost、朴素贝叶斯

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

knn_kdtree.py has a bug

qiongshuai opened this issue · comments

your code is help for me, thanks. But, I found a bug about knn_kdtree.py. This bug is in the create function of KdTree class. when you sorted the dataset, the label was not be sorted. so, when you create a node, the corresponding label of data will wrong!