Skip to content

Creating a model class for classification tasks using the nearest neighbor algorithm. We have created a machine learning method that does not make use of sklearn.

Notifications You must be signed in to change notification settings

shradha289/nearest-neighbor-algorithm-for-classification-tasks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

nearest-neighbor-algorithm-for-classification-tasks

Creating a model class for classification tasks using the nearest neighbor algorithm. We have created a machine learning method that does not make use of sklearn.

We have data from the website of a real estate agency. The target variable is air conditioner: apartment has air conditioner-(1); no air conditioner-(0). We have created a class NearestNeighborClassificator which contains methods fit() and predict(). fit() stores the entire training set while predict() uses the nearest_neighbor_predict() function to predict the value.

About

Creating a model class for classification tasks using the nearest neighbor algorithm. We have created a machine learning method that does not make use of sklearn.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published