I am trying to find a way of using tf.metrics.mean_per_class_accuracy as Keras metric.
My classes are binary and the metric I want to perform is :
this one. So it perfectly corresponds to mean_per_class accuracy from TF.
I could actually code it but I don't master tensorflow tensors
binary_accuracy and categorical_accuracyin keras do not precisely perform the metric I want.
Thank you very much