Skip to content

objective is to build a classifier, to predict the class of unknown cases

Notifications You must be signed in to change notification settings

soumya2103/K-Nearest-Neighbours

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

K-Nearest-Neighbours

K-Nearest Neighbors is an algorithm for supervised learning. Where the data is 'trained' with data points corresponding to their classification. Once a point is to be predicted, it takes into account the 'K' nearest points to it to determine it's classification.

Here's an visualization of the K-Nearest Neighbors algorithm.

image

Imagine a telecommunications provider has segmented its customer base by service usage patterns, categorizing the customers into four groups. If demographic data can be used to predict group membership, the company can customize offers for individual prospective customers. It is a classification problem. That is, given the dataset, with predefined labels, we need to build a model to be used to predict class of a new or unknown case.

The example focuses on using demographic data, such as region, age, and marital, to predict usage patterns.

The target field, called custcat, has four possible values that correspond to the four customer groups, as follows: 1- Basic Service 2- E-Service 3- Plus Service 4- Total Service

The IPython notebook demonstrates the objective

The following is an exercise during IBM certification on Machine learning

About

objective is to build a classifier, to predict the class of unknown cases

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published