Monday, 21 June 2021

Error in reverse scaling outputs predicted by a LSTM RNN

I used the LSTM model to predict the future open price of a stock. Here the data was preprocessed and the model was built and trained without any errors, and I used Standard Scaler to scale down the values in the DataFrame. But while retrieving the predictions from the model, when I used the scaler.reverse() method it gave the following error.

ValueError: non-broadcastable output operand with shape (59,1) doesn't match the broadcast shape (59,4)

The complete code is a too big jupyter notebook to directly show, so I have uploaded it in a git repository



from Error in reverse scaling outputs predicted by a LSTM RNN

No comments:

Post a Comment