Issue with HANS evaluation
See original GitHub issue🐛 Bug
Information
Model I am using (Bert, XLNet …): Albert, Bert
Language I am using the model on (English, Chinese …): GLUE (MNLI), HANS
The problem arises when using:
- the official example scripts: (give details below)
- my own modified scripts: (give details below)
The tasks I am working on is:
- an official GLUE/SQUaD task: (give the name)
- my own task or dataset: (give details below)
To reproduce
I have tried to evaluate ALBERT and BERT (pretrained, trained on MNLI) on HANS. I’m using the official example.
Everytime I run evaluation, I’m getting
Heuristic entailed results:
lexical_overlap: 0.0
subsequence: 0.0
constituent: 0.0
Heuristic non-entailed results:
lexical_overlap: 1.0
subsequence: 1.0
constituent: 1.0
Results can be reproduced by:
python3 hans/test_hans.py --task_name hans --model_type bert/albert --do_eval --data_dir $HANS_DIR --model_name_or_path $MODEL_PATH --max_seq_length 128 --output_dir $MODEL_PATH --per_gpu_eval_batch_size 1024 --overwrite_cache
Expected behavior
It shouldn’t be exactly 0 and 1 always and entailment score should be higher than non entailment.
Environment info
transformers
version: 2.11.0- Platform: Linux 5.4.0-29-generic
- Python version: 3.8.2
- PyTorch version (GPU?): 1.5.0+cu101
- Tensorflow version (GPU?): NA
- Using GPU in script?: Yes
- Using distributed or parallel set-up in script?: No
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Little Hans - Freudian Case Study - Simply Psychology
Case Study Summary. Little Hans was a 5-year-old boy with a phobia of horses. Like all clinical case studies, the primary aim was...
Read more >The Case Of Little Hans: Explanation, Freud, Summary & Ethics
And last, the explanation will provide an evaluation of the ethical issues of Little Hans' case study. Everything you'll need for your studies...
Read more >Freud (1909) | Psychology - Tutor2u
The study describes Hans' fears from when he was three years old until he was five. He was five years old at the...
Read more >Freud's Little Hans Case Study - Video & Lesson Transcript
In brief, Hans was a five-year-old who developed a phobia of horses after seeing one fall down and die. This phobia was a...
Read more >Little Hans: A Review of Freud's Analysis - Psych n Stats Tutor
The description the father gave of Hans was that the dominant problem was, “He is afraid a horse will bite him in the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I forgot the header on that file, #5082 should fix.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.