C4 Week 2. "Test passed" notifications but not passing

From the coding exercise belonging to C4 W2, I am getting the “All test passed”. Nevertheless, I don’t get more than a 33 / 100. I have checked the error in the grader and it states that there are variable that does not exist. However, they are needed in order to proceed with the exercise.

More concretely:

—> 12 comparator(summary(model2), alpaca_summary)
14 for layer in summary(model2):

NameError: name 'model2' is not defined

Regarding this error, it seems the model compiles:

And the second error:

NameError Traceback (most recent call last)
----> 1 assert type(loss_function) == tf.python.keras.losses.BinaryCrossentropy, "N…
2 assert loss_function.from_logits, “Use from_logits=True”
3 assert type(optimizer) == tf.keras.optimizers.Adam, "This is not an Adam op…
4 assert optimizer.lr == base_learning_rate / 10, “Wrong learning rate”
5 assert metrics[0] == ‘accuracy’, “Wrong metric”

NameError: name 'loss_function' is not defined

Help would be really appreciated!

Kind regards,


1 Like

for my reference: looked.

1 Like

We are having an issue with the graders. We are working on it to fix them as soon as possible. We apologise for the inconvenience.

Please frequently check this post regarding the update: Course 4 Assignment Submission Issues

Thank you very much Mubsi. I thought that was my fault. No worries, I will continue with the course in the meantime.
And regarding the post, I will check it frequently.

Kind regards,