Course 1 week 1 metrics error

my metrics is error and I don’t know how to fix it even I tried many different ways:
metrics = {‘wine_type’: “accuracy”,
‘wine_quality’: tf.keras.metrics.RootMeanSquaredError()

Please move your topic to the correct subcategory.
Here’s the community user guide to get started.

Please read the instructions in the “Compiling the Model” section above the code cell. In particular, this part should be helpful:

The metrics documentation is linked here.
For the wine type, please set it to accuracy as a string, all lowercase.
For wine quality, please use the root mean squared error. Instead of a string, you'll set it to an instance of the class RootMeanSquaredError, which belongs to the tf.keras.metrics module.

1 Like