sklean1 파이썬 '판다스 데이터 분석' - 정규화 MinMax, Standard 변수의 범위가 다르면 상대적으로 큰 숫자 값을 갖는 변수의 영향이 더 커진다. 숫자 데이터의 상대적인 크기 차이를 제거할 필요가 있다. MinMaxScaler 기법 y = x - 최소 / 최대 - 최소 min_x = df.horsepower - df.horsepower.min() min_max = df.horsepower.max() - df.horsepower.min() df_result = min_x / min_max df_result 0 0.456522 1 0.646739 2 0.565217 3 0.565217 4 0.510870 ... 393 0.217391 394 0.032609 395 0.206522 396 0.179348 397 0.195652 Name: horsepower, Length: 3.. 2021. 7. 23. 이전 1 다음