non-broadcastable output operand with shape (67,1) doesn't match the broadcast shape (67,2)

Viewed 17
I am trying to predict Y with a exogenous variable with a LSTM 

test_set = df_test[['q_sales','holiday']]
inputs = np.reshape(test_set, (len(test_set), 2))
inputs = min_max_scaler.transform(inputs)
inputs = np.reshape(inputs, (len(inputs),1,2))
Y = regressor.predict(inputs)
min_max_scaler.inverse_transform(Y)

This is the issue that I am getting when I reshaped is:

non-broadcastable output operand with shape (67,1) doesn't match the broadcast shape (67,2)

It is very weird because the dimensions of "Y"

Y.shape
Out[123]: (67, 1)

Any work around to solve this issue?

0 Answers
Related