I’m getting a traceback when submitting C2_W1_Assigment that states: “Cell #9. Can’t compile the student’s code. Error: AssertionError(‘Wrong number of layers. Expected 3 but got 0’)”
I believe the code is correct. If I run it in the Jupyter notebook I get 3 layers. I’ve seen others suggest removing the name attribute, but I get the same error after removing it. Any assistance would be appreciated!
Model: “my_model”
Layer (type) Output Shape Param #
layer1 (Dense) (None, 25) 10025
layer2 (Dense) (None, 15) 390
layer3 (Dense) (None, 1) 16
=================================================================
Total params: 10,431
Trainable params: 10,431
Non-trainable params: 0
Link to assignment:
{LINK REMOVED BY MODERATOR AS THE ASSIGNMENT WILL BE GRADING YOUR PROGRAMMING OR CODING SKILLS}