There was a problem grading your submission. Details:
Incompatible shapes: [1150,64] vs. [1150] [Op:SquaredDifference]
where would the mistake be when i get this error?
There was a problem grading your submission. Details:
Incompatible shapes: [1150,64] vs. [1150] [Op:SquaredDifference]
where would the mistake be when i get this error?
Does the error give you the line where the error occurred? If it does then you can check the shape mismatch issue and why you are getting it.
it gives an error here:
mse, mae = compute_metrics(series_valid, rnn_forecast)
print(f"mse: {mse:.2f}, mae: {mae:.2f} for forecast")
It makes sense to check the shape of the arguments of mse= tf.keras.metrics… where the arrow is pointing, the true_series and forecast probably do not have the same shape. I guess the forecast is computed so that is probably the one that is not computed right, find where it is computed and fix that issue. Also I think here the forecast should be the y_pred and true_series the y_true, don’t mix up the position of the arguments when you calculate the mse, the last arrow of the error gives you position of each in the function.
is this problem in “create_uncompiled_model” function?
@Ahmad-Mustafa
Please don’t create duplicate posts.
Please click my name and message your notebook as an attachment.
the problem was with the LSTM
and Dense
layers:
i was using (1 Conv1D
layer) , (3 Dense
layers ) , and (2 LSTM
layers), it must be (1 Conv1D
layer) , (1LSTM
layer ) and (2 Dense
layers).
can you please send your notebook
Why do you need a learner notebook?
I have the same problem and do not know how to solve it. Can anyone give me a hand, please? Many thanks.
@Zhi_Yang Just saw your notebook. Model output should have shape (None, 1)
. Your model has output shape (None, None, 1)
. Please fix this.
please help me i have the same problem
I have sent you my notebook
I just ran your notebook without any error. Seems like you changed the notebook before giving it to me. The error you observed will happen when you specify a certain flag to the LSTM layer.
Please download the notebook you sent me via direct message and run it. Do confirm if you’re still facing issue(s).
yeah running perfectly thanks
Have you fixed this error yet? Can you send me your notebook? thank you very much
Hi Pratik, could you please share your notebook with me? I am facing the same issue and need