Here I have programmed the KNN machine learning algorithm from scratch. It calculates for one or more selected data points in 1 to n-dimensional space the k nearest neighbors using the Euclidean distance. The class of the selected data point(s) to be predicted, will be determined by using majority voting for the classes of the k neighbors.
-
Notifications
You must be signed in to change notification settings - Fork 0
k-nearest-neighbor machine algorithm for classification from scratch.
License
calt-laboratory/knn_from_scratch
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
k-nearest-neighbor machine algorithm for classification from scratch.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published