Skip to content

codingCapricorn/KNN_Classifier

Repository files navigation

KNN_Classifier

Developing Own K-Nearest Neighbour(KNN)-A Machine Learning Algorithm

Statistical learning refers to a collection of mathematical and computation tools to understand data.In what is often called supervised learning, the goal is to estimate or predict an output based on one or more inputs.The inputs have many names, like predictors, independent variables,features, and variables being called common.The output or outputs are often called response variables,or dependent variables..

If the response is quantitative - say, a number that measures weight or height, we call these problems regression problems.

If the response is qualitative-- say, yes or no, or blue or green, we call these problems classification problems.

This repository deals with one specific approach to classification.The goal is to set up a classifier such that when it's presented with a new observation whose category is not known,it will attempt to assign that observation to a category, or a class,based on the observations for which it does know the true category.This specific method is known as the k-Nearest Neighbors classifier,or kNN.

Given a positive integer k, say 5, and a new data point, it first identifies those k points in the data that are nearest to the point and classifies the new data point as belonging to the most common class among those k neighbors.

The Repository consists of following modules ::::

  -->> 1.kNN distance algorithm

  -->> 2.kNN nearest neighbour using majority votes

  -->> 3.kKK predict using synthetic points

  -->> 4.kNN prediction grids

  -->> 5.Compairing kNN_scikitlearn  VS  organic_on_IRIS algorithm performances

About

Own KNN-Machine Learning Algorithm

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published