About this question
I have performed GaussianNB classification using a sklearn. I tried to calculate the metrics using the following code:
print accuracy_score(y_test, y_pred)
print precision_score(y_test, y_pred)
Accuracy score is working correctly but the precision score calculation is showing error as:
ValueError: Target is multiclass but average='binary'. Please choose another average setting.
As the target is multiclass, can I have the metric scores of precision, recall, etc.?
Top keyword - target is multiclass but average='binary'. please choose another average setting.