AndyJZhao / GLEM

110 stars 13 forks source link

FileNotFoundError: Couldn't find a metric script at xxx/src/utils/function/hf_f1.py #2

Closed Rejuy closed 1 year ago

Rejuy commented 1 year ago

Dear author: I was running your code and it came to the phase of pretraining LM. However, when it was loading metrics, I found that the required metrics below are mostly lacked. Only hf_accuracy.py can be found. Could you provide those files? Thanks a lot!

METRICS = {  # metric -> metric_path
    'accuracy': 'src/utils/function/hf_accuracy.py',
    'f1score': 'src/utils/function/hf_f1.py',
    'precision': 'src/utils/function/hf_precision.py',
    'recall': 'src/utils/function/hf_recall.py',
    'spearmanr': 'src/utils/function/hf_spearmanr.py',
    'pearsonr': 'src/utils/function/hf_pearsonr.py',

}
AndyJZhao commented 1 year ago

Only the "hf_accuracy.py" is needed. You may comment the other metrics if you want.