- while valid_c_quizzes(recorded, standard_validity).size(0) < nb_to_create:
- model_for_generation = models[torch.randint(len(models), (1,))]
+ file_name = os.path.join(args.result_dir, f"culture_c_quiz_{n_epoch:04d}_logp.dat")
+ with open(file_name, "w") as logp_file:
+ while valid_c_quizzes(recorded, standard_validity).size(0) < nb_to_create:
+ # Select a model at random to generate the new quizzes