Closed daraghhartnett closed 3 years ago
Thanks for flagging. The PR mentioned above will make it default to accuracy. Of course, you're free to change it to whatever you need!
Glad to be of help! Ah, I did not see that - I only looked in the Issues to see if it had already been reported. I will check the PR's as well the next time. Thanks very much!
The PR did not exist before you flagged the issue ;-) I opened it to fix it!
Ah! Excellent! I am using the PR you proposed locally so I am back in business :)
Environment info
transformers
version: 4.5.1Who can help
Information
Model I am using (Bert, XLNet ...): distilbert-base-uncased
The problem arises when using:
Yields the error:
` Some weights of the model checkpoint at distilbert-base-uncased were not used when initializing DistilBertForSequenceClassification: ['vocab_transform.weight', 'vocab_transform.bias', 'vocab_layer_norm.weight', 'vocab_layer_norm.bias', 'vocab_projector.weight', 'vocab_projector.bias']
The tasks I am working on is:
Simple single sentence text classification
To reproduce
Steps to reproduce the behavior:
` Some weights of the model checkpoint at distilbert-base-uncased were not used when initializing DistilBertForSequenceClassification: ['vocab_transform.weight', 'vocab_transform.bias', 'vocab_layer_norm.weight', 'vocab_layer_norm.bias', 'vocab_projector.weight', 'vocab_projector.bias']
Expected behavior
Since providing your own csv files is allowed, the metric object should be initialized when no task_name is provided.