Skip to content Skip to sidebar Skip to footer

Valueerror: 'balanced_accuracy' Is Not A Valid Scoring Value In Scikit-learn

I tried to pass to GridSearchCV other scoring metrics like balanced_accuracy for Binary Classification (instead of the default accuracy) scoring = ['balanced_accuracy','recall',

Solution 1:

Update your sklearn to the latest version if you want to use balanced_accuracy. As you can see from the 0.19 documentation balanced_accuracy is not a valid scoring metric. It was added in 0.20.


Post a Comment for "Valueerror: 'balanced_accuracy' Is Not A Valid Scoring Value In Scikit-learn"