Hi,
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)
13
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)
in
----> 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,
jose.