Unable to train Spancat model, accuracy stuck at 0.0 #11423
Replies: 3 comments 7 replies
-
Sorry this isn't working for you. Flat zero scores in training usually indicate an issue with training data rather than a config problem. Your preprocessing script looks OK, but maybe there's an issue with your annotations and no spans are being created? You can try using |
Beta Was this translation helpful? Give feedback.
-
I checked data several times, it looks good.
|
Beta Was this translation helpful? Give feedback.
-
@darrkj I have been experiencing a very similar behaviour, i.e., complex annotations resulted in zeros in training but the trained model was able to predict meaningfully. I am wondering if there is a common patter and something to do with annotations / spans? Are there any metrics that can indicate this strange behaviour? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Losses decrease to 0 within 2000-3000 epochs, f, p, r scores do not go higher than 0 (
image 1
).Then I tried a different datasets and got a result like this in
image2
. But when I tried the old dataset again with the same config, I stayed at 0 again, then I tried a different dataset and I was left at 0 again. I tried different different sizes forngram_range_suggester
but I couldn't find what is wrong!image 1
image2
How to reproduce the behaviour
Here is the preprocess and config files that I used for training.
preprocess.py for creating
.spacy
files.Here is my config.cfg
Info about spaCy
Beta Was this translation helpful? Give feedback.
All reactions