allenai / kb

KnowBert -- Knowledge Enhanced Contextual Word Representations
Apache License 2.0
370 stars 50 forks source link

Different F1 scores with the same hyperparameters and same random seeds #33

Open abdkiwan opened 3 years ago

abdkiwan commented 3 years ago

Hello,

I trained a knowbert language model on some medical data, and want to fine-tune it on a relation classification task. However, I get different Micro/Macro F1 scores every time a fine-tune it while keeping the same hyperparameters and the same random seeds.

Does anybody know what the problem could be ?

thanks in advance,

MichalPitr commented 3 years ago

Probably check if you are setting random seeds for all random number generators - Python's random, numpy, torch, sklearn, etc...