Issue
I use minimax scaler for my data... but I want to get the predicted data(output) unnormalized. I want to get the output with the original values not the normalized value.. Any one can help me...
My code for normalized data:
scaler = MinMaxScaler()
scaler_X = MinMaxScaler()
scaler_Y = MinMaxScaler()
# fit_transform for training data:
X_train = scaler_X.fit_transform(train.values[:,1:])
y_train = scaler_Y.fit_transform(train.values[:,:1])
# only transform for test (unseen) data:
X_test = scaler_X.transform(test.values[:,1:])
y_test = scaler_Y.transform(test.values[:,:1])
Solution
You can use inverse_transform
with the corresponding min-max scaler object.
scaler_Y.inverse_transform(data)
Answered By - Akshay Sehgal
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.