Answers for "(classification_report(y_test, testPreds, target_names=target_names))"

1

classification report scikit

from sklearn.metrics import classification_report

target_names = ['first_value_y','second_value_y'] # target values

# Print classification report after a train/test split:
print(classification_report(y_test, y_pred, target_names=target_names))
Posted by: Guest on November-08-2020

Code answers related to "(classification_report(y_test, testPreds, target_names=target_names))"

Python Answers by Framework

Browse Popular Code Answers by Language