Hi,
In exercise 3 of fine tuning function, I’m getting an error in the accuracy metric assertion code:
TypeError Traceback (most recent call last)
in
3 assert type(optimizer) == tf.keras.optimizers.Adam, “This is not an Adam optimizer”
4 assert optimizer.lr == base_learning_rate / 10, “Wrong learning rate”
----> 5 assert metrics[0] == ‘accuracy’, “Wrong metric”
6
7 print(’\033[92mAll tests passed!’)
TypeError: ‘Accuracy’ object is not subscriptable
I’m not understanding what this error is and how can I rectify it. Kindly help