feature rescaling

from sklearn.preprocessing import MinMaxScaler
import numpy
weights = numpy.array([[115.], [140.], [175.]])
scaler = MinMaxScaler()
rescaled_weight = scaler.fit_transform(weights)
rescaler_weights=array([[ 0.        ],
                        [ 0.41666667],
                        [ 1.        ]])

results matching ""

    No results matching ""