Quantcast
Channel: Data Science, Analytics and Big Data discussions - Topics tagged data_science
Viewing all articles
Browse latest Browse all 787

What is the meaning of Standardization in KNN

$
0
0

@vineet72 wrote:

I have lot of confusion in the standardization process in the K-NN algorithm.
Here is the code:-

from sklearn.preprocessing import StandardScaler
scaler= StandardScaler()
scaler.fit(df.drop(‘TARGET CLASS’,axis=1))
scaled_features=scaler.transform(df.drop(‘TARGET CLASS’,axis=1))

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 787

Trending Articles