Skip to content

Commit 0cb1ba2

Browse files
committed
Resolve merge conflict
2 parents 5e30903 + bb0007e commit 0cb1ba2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fastchat/serve/monitor/classify/display_score.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import pandas as pd
22
import argparse
33
import os
4+
from pathlib import Path
45
from glob import glob
56
from sklearn.metrics import recall_score, precision_score
67

@@ -40,8 +41,7 @@
4041
recall = recall_score(y_pred=test.pred, y_true=test.label)
4142
precision = precision_score(y_pred=test.pred, y_true=test.label)
4243

43-
# print(f"Model: {output.model[0]}")
44-
print(f"Model: {os.path.splitext(os.path.basename(file))[0]}")
44+
print(f"Classifier: {Path(file).stem}")
4545
print(f"Accuracy: {round(accuracy, 3)}")
4646
print(f"Precision: {round(precision, 3)}")
4747
print(f"Recall: {round(recall, 3)}")

0 commit comments

Comments
 (0)