COSMIT refactor roc_curve and precision_recall_curve