Use TensorFlow loss Global Objectives (recall_at_precision_loss) with Keras (not metrics)
问题 Background I have a multi-label classification problem with 5 labels (e.g. [1 0 1 1 0] ). Therefore, I want my model to improve at metrics such as fixed recall, precision-recall AUC or ROC AUC. It doesn't make sense to use a loss function (e.g. binary_crossentropy ) that is not directly related to the performance measurement I want to optimize. Therefore, I want to use TensorFlow's global_objectives.recall_at_precision_loss() or similar as loss function. Relevant GitHub: https://github.com