Normalisasi Data Dengan Sklearn ( Python )

Data Asli

 HOME  DRAW  AWAY HASIL
0  1.36  4.75  8.50     H
1  3.75  3.75  1.85     A
2  1.90  3.75  3.75     A
3  2.15  3.60  3.10     A
4  6.50  4.00  1.50     A
from sklearn import preprocessing    

#pilih column
X = bola[["HOME","AWAY","DRAW"]]  

#mulai transform
X_transform = prepro
print(X_transform)  

Hasil

[[-0.67532824  0.94808013  0.46996485]
 [ 0.42640902 -0.6976068  -0.25139789]
 [-0.42640016 -0.22741053 -0.25139789]
 ...
 [-0.50937618 -0.04180674 -0.21532975]
 [-0.57852287  0.2675329  -0.21532975]
 [ 0.44945792 -0.67285963 -0.3596023 ]]

 421 total views

Tinggalkan Balasan

Alamat email Anda tidak akan dipublikasikan. Ruas yang wajib ditandai *