为了提高model.compile的精确度和召回率,我们可以这样做:
import tensorflow as tf
model.compile( ..., metrics=['accuracy', 'Precision', 'Recall'])那么如何添加F1score来获得所有指标(4)呢?
发布于 2021-06-27 21:08:44
从tensorflow_addons package添加tfa.metrics.F1Score()。
https://stackoverflow.com/questions/68151187
复制相似问题