timoschick / pet

This repository contains the code for "Exploiting Cloze Questions for Few-Shot Text Classification and Natural Language Inference"
https://arxiv.org/abs/2001.07676
Apache License 2.0
1.62k stars 282 forks source link

--train_examples #65

Closed savasy closed 2 years ago

savasy commented 2 years ago

Dear Timo, Does the parameter "--train_examples" refer to training set size. So, I mean, setting it to 0 (zero) means zero-shot learning, doesn't it? Thank you

timoschick commented 2 years ago

Hi @savasy, yes, --train_examples refers to the training set size. However, there seems to be an issue with --train_examples 0 (which is interpreted as using all training examples). See this issue for an explanation and workarounds. If you are not using iterative PET, you can also simply set the number of training steps to 0 for a zero-shot setting.

savasy commented 2 years ago

Thank you @timoschick ! It is very helpful!