Scikit-learn: How To Normalize Row Values Horizontally?
I would like to normalize the values below horizontally instead of vertically. The code read csv file provided after the code and output a new csv file with normalized values. How
Solution 1:
You can simply operate on the transpose, and take a transpose of the result:
minmax_scale = preprocessing.MinMaxScaler(feature_range=(0, 1)).fit(x.T)
X_minmax=minmax_scale.transform(x.T).T
Post a Comment for "Scikit-learn: How To Normalize Row Values Horizontally?"