Skip to content

Python implement of KD_Tree and Ball_Tree

Notifications You must be signed in to change notification settings

wdl1766/KDTree_BallTree

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KDTree_BallTree

Python implement of KD_Tree and Ball_Tree

This is python implement of KD_Tree and Ball_Tree based on winequality-white.csv, This dataset has 4898 samples from 10 quality level.Each sample has 12 attributes.In this program,80% samples are spilted to training data and the left are used to test.

Usage:

python BallTree_KNN.py

python KDTree_KNN.py

Result:

Type Construction time(s) time(s)/search compare times/search MSE
KD Tree(K=5) 0.021 0.089 1256.76 0.842
Ball Tree (K=5) 0.994 0.049 643.13 0.842

About

Python implement of KD_Tree and Ball_Tree

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%