Specifically, if I open the submission report I get the following two errors:
Tests failed on 2 cell(s)! These tests could be hidden. Please check your submission.
The following cell failed:
from test_utils import summary, comparator
alpaca_summary = [['InputLayer', [(None, 160, 160, 3)], 0],
['Sequential', (None, 160, 160, 3), 0],
['TensorFlowOpLayer', [(None, 160, 160, 3)], 0],
['TensorFlowOpLayer', [(None, 160, 160, 3)], 0],
['Functional', (None, 5, 5, 1280), 2257984],
['GlobalAveragePooling2D', (None, 1280), 0],
['Dropout', (None, 1280), 0, 0.2],
['Dense', (None, 1), 1281, 'linear']] #linear is the default ac...
comparator(summary(model2), alpaca_summary)
for layer in summary(model2):
print(layer)
The error was:
** ---------------------------------------------------------------------------**
** NameError Traceback (most recent call last)**
** in **
** 10 [‘Dense’, (None, 1), 1281, ‘linear’]] #linear is the de…**
** 11 **
** —> 12 comparator(summary(model2), alpaca_summary)**
** 13 **
** 14 for layer in summary(model2):**
** NameError: name ‘model2’ is not defined**
==========================================================================================
The following cell failed:
assert type(loss_function) == tf.python.keras.losses.BinaryCrossentropy, "Not the c...
assert loss_function.from_logits, "Use from_logits=True"
assert type(optimizer) == tf.keras.optimizers.Adam, "This is not an Adam optimizer"
assert optimizer.lr == base_learning_rate / 10, "Wrong learning rate"
assert metrics[0] == 'accuracy', "Wrong metric"
print('\033[92mAll tests passed!')
The error was:
** ---------------------------------------------------------------------------**
** 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**