C4W2 Wrong metric in alpaca improved model

In exercise 3 we are asked to manually set the loss function, the optimizer and evaluation metric. I got the following error AssertionError: Wrong metric but can not find the mistake in my code. I defined the variable metrics as follows metrics = [tf.keras.metrics.Accuracy()]

I would appreciate any help, thanks!

That’s not how you set the accuracy metric.

It just wants you to set the variable metrics = [‘accuracy’]

6 Likes