Search code examples
pythonkeras

What are all the valid strings I can use with keras.model.compile?


What strings are valid metrics with keras.model.compile?

The following works,

model.compile(optimizer='sgd', loss='mse', metrics=['acc'])

but this does not work,

model.compile(optimizer='sgd', loss='mse', metrics=['recall', 'precision'])

Solution

  • Check method to check metrices. Check docstring for details

    enter image description here