ML-AI-experiments
ML-AI-experiments copied to clipboard
scaler.inverse_transform error
When executing these lines: actuals = scaler.inverse_transform(test_y) or preds_moving = scaler.inverse_transform(preds_moving)
I am getting this same error: ValueError: Expected 2D array, got 1D array instead
I've got same error
how to fix it?
how to fix it?
You can remove the line in preds_moving and have actuals=test_y The transform sets the data to be between -1 and 1. This is only useful when you are working with data that it outside of -1 to 1. Since this is a sin curve the data doesn't actually change.