I Have a numpy array of shape: (5380, 1071)
I am trying to scale it's values using:
from sklearn.preprocessing import MinMaxScaler
scaler = MinMaxScaler()
X_train = scaler.fit_transform(X_train)
But, i get this error:
ValueError: Input contains infinity or a value too large for dtype('float64').
I checked the maximum value using print(X_train.argmax())
and the output is just "1027"
This array do not contain any nan or infinity value.
This is not a duplicate of
sklearn error ValueError: Input contains NaN, infinity or a value too large for dtype('float64')
Both errors are different.