DSCKGEC / learn-machine-learn

A one-stop repository for new-comers in Machine Learning and A.I.
MIT License
1 stars 4 forks source link

Add KNN classifier #5

Closed KrishnenduDakshi2002 closed 2 years ago

KrishnenduDakshi2002 commented 2 years ago

The k-nearest neighbors algorithm, also known as KNN or k-NN, is a non-parametric, supervised learning classifier, which uses proximity to make classifications or predictions about the grouping of an individual data point.

Requested Feature

Build a KNN classifier and in the output, f1-score, accuracy and confusion matrix must be printed, there is a function named metrics for printing the accuracy and confusion matrix. Hyperparameter tuning can be done to improve the accuracy. As the dataset is imbalanced, do prefer f1 score as metric while training.

RohanHBTU commented 2 years ago

may I work on this issue?

KrishnenduDakshi2002 commented 2 years ago

@RohanHBTU issue is assigned. Go ahead!!

KrishnenduDakshi2002 commented 2 years ago

Issue is resolved in commit 3d1b41cecd769cce5bde462bb67dac02abfb8f84