What does scores_arr > np.mean(scores_arr) mean here?
Doesn't scores_arr store the probability of this sample belongs to positive examples?
Why not just use scores_arr >= 0.5 ?
|
return roc_auc_score(labels, scores), f1_score(labels, (scores_arr > np.mean(scores_arr)).astype(np.float32).tolist()) |