Skip to content

khoilr/kNN-Simulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kNN Simulation

A simulation of the kNN algorithm plotted using the Plotly library. Data is generated using Scikit-learn library, the data has 3 features.

Using GridSearch with different parameters of kNN algorithm built in Scikit-learn library to find the best parameters for the algorithm.

Then use Plotly to draw 3D simulations of the points in the data, with the number of neighbors found from GridSearch, draw those neighbors along with any chosen point to predict.

Origin data: Origin data Predicted point and k nearest points: Prediction

The predicted point is mark the same color as the predicted class, and the k nearest points are mark the same color as the predicted class.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published