Question 28
Consider following common data:
print("Classification Report:\n", classification_report(y_test, y_pred))Classification Report: precision recall f1-score support
0 0.86 0.67 0.75 9 1 0.97 0.99 0.98 105
accuracy 0.96 114 macro avg 0.91 0.83 0.87 114weighted avg 0.96 0.96 0.96 114Consider the above classification report on a model where y_test contains the original labels and y_pred contains the predicted labels.
Based on the above data, answer the given subquestions.
Consider the following assertion & reason and select the correct option:
Assertion: This is a good model as we see a very high accuracy of 96%
Reason: In the case of imbalanced datasets, accuracy might not be the best metric for evaluating a model
Both the assertion and reason are correct, and the reason is a correct explanation of the assertion
Both the assertion and reason are correct, but the reason is not a correct explanation of the assertion.
The assertion is correct, but the reason is incorrect.
The assertion is incorrect, but the reason is correct.