kurowasan / knn_kdtree

An implementation from scratch of a knn algorithm with a kd-tree
1 stars 0 forks source link

Main Code FIle #1

Open tempmail1ac opened 3 years ago

tempmail1ac commented 3 years ago

Hi there, I have reviewed your provided class file for KNN using tree structure. Can you share the "main code file" which will be used to call the class and the model will be trained using these defined functions.

Thank you

kurowasan commented 3 years ago

Hi! Thank you for your interest!

Unfortunately, I haven't update this project for four years and I don't have the main file anymore. If you really want to test it, I think you only need to instantiate KD_TREE, call createTree and finally call validate. It was more of a side project to play with kd-tree and nothing to be taken too seriously.

If you want to use kNN with KDTree, I highly recommend you to use the version provided by sklearn (which has been tested and is surely more efficient).