GOOD icon indicating copy to clipboard operation
GOOD copied to clipboard

About more metrics

Open bruno686 opened this issue 1 year ago • 1 comments

Hi Shirui, The code only seems to show one metric at a time, how can I set it up to show F1, Accuarcy, etc. at the same time?

bruno686 avatar May 03 '24 15:05 bruno686

Hi Zhuangzhuang,

The easiest implementation will be to modify the eval_score function so that it includes a new parameter for the selection of the score function like F1, Accuracy. Then you can add your eval_score calls in the evaluate function for different metrics and output them. Note that although you can output different metrics, we generally use one metric to select the best model. If your goal is to choose the best model using multiple metrics, a good practice is to define a new "score" as the mixture of the current metrics. For more complex model selection algorithms, you may need to write your code.

Best

CM-BF avatar May 03 '24 16:05 CM-BF

You're really a good boy! Thank you very much!

bruno686 avatar May 05 '24 05:05 bruno686