top of page

Preprocessing

  • niko
  • 2 juil. 2018
  • 1 min de lecture

CODE PYTHON:

from sklearn import preprocessing import numpy as np

X_train = np.array([[ 1., -1., 2.], [ 2., 0., 0.], [ 0., 1., -1.]])

X_scaled = preprocessing.scale(X_train)

X_scaled réponse :

array([[ 0. ..., -1.22..., 1.33...], [ 1.22..., 0. ..., -0.26...], [-1.22..., 1.22..., -1.06...]])

Commentaires


A découvrir ...
bottom of page