Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Way lower accuracy than example notebooks #41

Open
J0ekr opened this issue Jul 12, 2023 · 1 comment
Open

Way lower accuracy than example notebooks #41

J0ekr opened this issue Jul 12, 2023 · 1 comment

Comments

@J0ekr
Copy link

J0ekr commented Jul 12, 2023

Hey,
Thanks for the great repo! I am currently trying to train a NLU and tested out your using_bert_crf_nlu example notebook with your provided data.
I have tested both Bert and Albert embeddings. However, I always only get 14% accuracy (so random classification), while you have ~98% accuracy. I am currently using python 3.11 - the only major compatibility issue I had was with sentencepiece (dependency from transformers), where I now use the newest version instead of your specified version range.
I can't imagine this being the case for the model not working anymore. I will continue investigating this, but wanted to ask whether you or someone else already had this issue and has ideas!

Thanks!

@J0ekr
Copy link
Author

J0ekr commented Jul 12, 2023

You set the BERT Embedding trainable=True. I have now set this to False, and get accuracies of ~80% after 3 epochs .

I assume you hotloaded your model used in the example notebook?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant