ML-AI-experiments icon indicating copy to clipboard operation
ML-AI-experiments copied to clipboard

scaler.inverse_transform error

Open MrDubliu opened this issue 6 years ago • 3 comments

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

MrDubliu avatar Jul 27 '18 14:07 MrDubliu

I've got same error

emech-en avatar Oct 11 '18 15:10 emech-en

how to fix it?

crab67 avatar Mar 19 '19 17:03 crab67

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.

gorth314159 avatar Apr 05 '19 23:04 gorth314159