There was a problem grading your submission. Details:
Incompatible shapes: [1150,64] vs. [1150] [Op:SquaredDifference]
Hints, I change the original code from
rnn_forecast = rnn_forecast[G.SPLIT_TIME - G.WINDOW_SIZE:-1]
to
rnn_forecast = rnn_forecast[G.SPLIT_TIME - G.WINDOW_SIZE:-1,0]
to make sure the metrics can be calculated, but after I submit my grade was 0, Even I have made reach the MAE.
Any idea how to fix?
My model summary
Model: “sequential_12”
Layer (type) Output Shape Param #
conv1d_12 (Conv1D) (None, None, 60) 360
lstm_24 (LSTM) (None, None, 60) 29040
lstm_25 (LSTM) (None, None, 60) 29040
dense_36 (Dense) (None, None, 30) 1830
dense_37 (Dense) (None, None, 10) 310
dense_38 (Dense) (None, None, 1) 11
lambda_12 (Lambda) (None, None, 1) 0
=================================================================
Total params: 60,591
Trainable params: 60,591
Non-trainable params: 0