Traceback (most recent call last):
File "/home/acb19lh/pet-master/cli.py", line 282, in <module>
main()
File "/home/acb19lh/pet-master/cli.py", line 266, in main
pet.train_ipet(pet_model_cfg, pet_train_cfg, pet_eval_cfg, ipet_cfg, sc_model_cfg, sc_train_cfg, sc_eval_cfg,
File "/home/acb19lh/pet-master/pet/modeling.py", line 191, in train_ipet
generate_ipet_train_sets(train_data=train_data, unlabeled_data=unlabeled_data,
File "/home/acb19lh/pet-master/pet/modeling.py", line 679, in generate_ipet_train_sets
subdir_train_set = generate_ipet_train_set(
File "/home/acb19lh/pet-master/pet/modeling.py", line 753, in generate_ipet_train_set
label_examples = _draw_examples_by_label_probability(
File "/home/acb19lh/pet-master/pet/modeling.py", line 764, in _draw_examples_by_label_probability
return rng.choice(examples, size=num_examples, replace=False, p=label_probabilities).tolist()
File "mtrand.pyx", line 965, in numpy.random.mtrand.RandomState.choice
ValueError: Cannot take a larger sample than population when 'replace=False'
My question is that is n_most_likely flag could only be used in zero training example cases?
Hi,
I am training iPET with the following command:
But after the first generation, I got:
My question is that is n_most_likely flag could only be used in zero training example cases?
Thanks.