To get back the original data after standardization or normalization, you can use the in-built inverse_transform function available in scikit-learn's StandardScaler and MinMaxScaler. It is used similarly to the fit_transform function.
scaler = StandardScaler()
X_scale = scaler.fit_transform(X)
X_original = scaler.inverse_transform(X_scale)
Comments
0 comments
Article is closed for comments.