added k_nearset_neighbors#923
Closed
anishk85 wants to merge 5 commits intoTheAlgorithms:masterfrom
anishk85:k_nearest_neighbors
Closed
added k_nearset_neighbors#923anishk85 wants to merge 5 commits intoTheAlgorithms:masterfrom anishk85:k_nearest_neighbors
anishk85 wants to merge 5 commits intoTheAlgorithms:masterfrom
anishk85:k_nearest_neighbors
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #923 +/- ##
==========================================
+ Coverage 95.32% 95.36% +0.03%
==========================================
Files 319 320 +1
Lines 20899 21060 +161
==========================================
+ Hits 19923 20083 +160
- Misses 976 977 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
15 tasks
Author
|
@imp2002 have you merged the files earlier without all workflows cleared because my build is failing because of the earlier issues in files |
Author
|
@imp2002 hi any updates on this?? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Added K-Nearest Neighbors (KNN) classification algorithm to the machine learning module.
KNN is a supervised learning algorithm that classifies data points based on the majority vote of their k nearest neighbors using Euclidean distance.
Reference: https://en.wikipedia.org/wiki/K-nearest_neighbors_algorithm
Type of change
Checklist:
cargo clippy --all -- -D warningsjust before my last commit and fixed any issue that was found.cargo fmtjust before my last commit.cargo testjust before my last commit and all tests passed.mod.rsfile within its own folder, and in any parent folder(s).DIRECTORY.mdwith the correct link.CONTRIBUTING.mdand my code follows its guidelines.Note: All 8 tests pass in <50ms (no
#[ignore]needed).