Salary Estimation Using K-Nearest Neighbour
Salary Estimation Using K-Nearest Neighbour
dataset = pandas.read_csv('dataset.csv')
No. of
Rows &
Load Dataset from the directory & Columns
Summarize the details such as no. of rows
3 Load & Summarize Dataset and Columns & Content
dataset.shape
Display 1st 5
rows of dataset
dataset.head(5)
Function: .map
Mapping Data from to Text to If the data is <=50K or >=50K, kind of text,
4 Binary Numbers Here we need to Map <50K as 0 & >50K as 1
SYNTAX: dataset.iloc[:,
start_col:end_col]
PROBLEM
SOLUTION
Types
Normalization is a scaling technique in
which values are shifted and rescaled so
that they end up ranging between 0 and 1.
Normalization It is also known as Min-Max scaling