📜  分类报告 scikit - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:26.875000             🧑  作者: Mango

代码示例1
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))