evaluate
evaluate copied to clipboard
[metric] macro and weighted average metrics for seqeval
Hi everyone!
I've noticed that seqeval module doesn't return weighted and macro metrics, but sometimes it's good to get them back. On the another hand, seqeval library calculates them.
So, the thing is only in pop
(remove) metrics out in the evaluate library.
Default previous behavior: removing "macro" and "weighted" metrics
report.pop("macro avg")
report.pop("weighted avg")
Current behavior: Add them as supplement metrics into final metrics dictionary