This project is a visualization of the K-Nearest Neighbors (KNN) classification algorithm. It uses colored balls to represent data points in clusters. Each color represents a different class. A new ball (data point) is added to the specific cluster based on its color (class).
- Visual representation of KNN classification.
- Interactive interface to add new data points.
- Color-coded data points for easy distinction between classes.
https://danieldotcomcoder.github.io/React-2d/#/knn
-
Clone the repository:
git clone https://github.com/Danieldotcomcoder/React-2d -
Navigate into the project directory:
cd React-2d -
Install the dependencies:
npm install -
Start the development server:
npm run dev
After starting the development server, open your browser and navigate to http://localhost:3000/React-2d/#/knn to view the
KNN application.
Contributions are welcome. Please fork the repository and create a pull request with your changes.
This project is licensed under the MIT License.