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'])
See keras source code, the list of metrics is
Possible abbreviations:
any others will need to be added as custom objects, see this link
Check method to check metrices. Check docstring for details
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With