I have a type of class 'numpy.ndarray', how to normalize this array between 0 and 1?
The array look like [-78.932495 -77.14235 -76.68105 ... -70.57554 -70.66422 -71.883995]
I have an example is like
an_array = np.random.rand(10)*10
print(an_array)
OUTPUT
[5.48813504 7.15189366 6.02763376 5.44883183 4.23654799 6.45894113
4.37587211 8.91773001 9.63662761 3.83441519]
norm = np.linalg.norm(an_array)
normal_array = an_array/norm
print(normal_array)
But it's for normal normalization, not for MinMaxScaler method. Then how to change to MinMaxScaler? Thanks