File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
fastchat/serve/monitor/classify Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 11import pandas as pd
22import argparse
33import os
4+ from pathlib import Path
45from glob import glob
56from sklearn .metrics import recall_score , precision_score
67
910 "math_bench" : ("math_v0.1" , "math" ),
1011 "hard_bench" : ("criteria_v0.1" , "hard" ),
1112 "creative_writing_bench" : ("creative_writing_v0.1" , "creative_writing" ),
13+ "refusal_bench" : ("refusal_v0.2" , "refusal" ),
1214}
1315
1416
3941 recall = recall_score (y_pred = test .pred , y_true = test .label )
4042 precision = precision_score (y_pred = test .pred , y_true = test .label )
4143
42- print (f"Model : { output . model [ 0 ] } " )
44+ print (f"Classifier : { Path ( file ). stem } " )
4345 print (f"Accuracy: { round (accuracy , 3 )} " )
4446 print (f"Precision: { round (precision , 3 )} " )
4547 print (f"Recall: { round (recall , 3 )} " )
You can’t perform that action at this time.
0 commit comments