How to get F1-Macro in Seqeval

#2
by kittubdanuj - opened

Hi ,

Seems Seqeval consider F1 average as metric:

image.png
I need to calculate F1-Macro for my NER finetuing task.
Any help please ..

u can create a custom variable to calculate the mean of every f1 score like this:
macro_f1_scores.append(metrics[entity_type]["f1"])
macro_f1 = np.mean(macro_f1_scores)

Sign up or log in to comment