I am working on a multi-label
image classification problem with the evaluation being conducted in terms of F1-score
between system predicted and ground truth labels.
Given that, should I use loss="binary_crossentropy"
or loss=keras_metrics.f1_score()
where keras_metrics.f1_score()
is taken from here: https://pypi.org/project/keras-metrics/
? I am a bit confused because all of the tutorials I have found on the Internet regarding multi-label
classification are based on the binary_crossentropy
loss function, but here I have to optimize against F1-score
.
Furthermore, should I set metrics=["accuracy"]
or maybe metrics=[keras_metrics.f1_score()]
or I should left this completely empty?