Why I didn't have the same result when I calculate the balance accuracy in two different ways?

Method 1 :

balance_accuracy=recall_score(ytest,y_predicted, average='macro')

Method 2:

fpr1, tpr1, thresholds = metrics.roc_curve(ytest, y_predicted, pos_label=1.0)

spec=1-fpr1[1]

sens=tpr1[1]

bc=(sens+spec)/2

Thanks a lot 

 

 

More Jehad Aldahdooh's questions See All
Similar questions and discussions