@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