How to calculate F1 Macro in Keras?
since Keras 2.0 metrics f1, precision, and recall have been removed. The solution is to use a custom metric function: from keras import backend as K def f1(y_true, y_pred): def recall(y_true, y_pred): “””Recall metric. Only computes a batch-wise average of recall. Computes the recall, a metric for multi-label classification of how many relevant items are … Read more