C4W4 - Problem with Sequence , Time Series and Prediction

Hello Everyone,

I am at the last assignment of Course 4 (Week 4) and I have done everything right , the MSE is under 6 and the MAE is under 2 but I keep getting this error , can anyone please help me with this.

There was a problem grading your submission. Details:
Incompatible shapes: [1150,64] vs. [1150] [Op:SquaredDifference]

Hello @abasit20131

You posted this in the wrong category. Currently, it is in the General category. Kindly change the category to the relevant course and our mentors will be happy to assist you.

You can change the category by clicking the pencil icon on the right side of the title, as shown in the below image.

Best,
Saif.

Please see this

Should I change the built-in functions in the notebook ?

Please use print(model.summary()) to understand output shapes and how it matches up with the validation set output shape. Pay attention to return_sequences flag.

Hello,
I am new to this deeplearning.ai platform. while doing WK4- Programming Assignment: Adding CNNs to improve forecasts , i am getting error continuously…unable to understand what i am doing wrong. can you please help? or suggest what is the appropriate place for asking the guidance to my problem?

Test your function and save all “global” variables within the G class (G stands for global)

@dataclass
class G:
TEMPERATURES_CSV = ‘./data/daily-min-temperatures.csv’
times, temperatures = parse_data_from_file(TEMPERATURES_CSV)
TIME = np.array(times)
SERIES = np.array(temperatures)
SPLIT_TIME = 2500
WINDOW_SIZE = 64
BATCH_SIZE = 32
SHUFFLE_BUFFER_SIZE = 1000

plt.figure(figsize=(10, 6))
plot_series(G.TIME, G.SERIES)
plt.show()…
while running the above part getting error and then kernel stopped working. and i can not proceed further.

Hello @AMRITA_CHAUDHURI ,

Welcome to the community!

You are free to talk about issues and reasoning with other learners and mentors. But you are not supposed to post codes here.

If you need your code to get reviewed by a mentor, send them your notebook via dm such that they can check where it went wrong. By clicking on the profile picture, you will see an option to message. There you can attach your notebook. Then you people can discuss the issues here.

With regards,
Nilosree Sengupta