if args.resume:
if not os.path.isdir(args.result_dir):
- print("Trying to resume with a non-existing result dir {args.result_dir}.")
+ print(f"Trying to resume with a non-existing result dir {args.result_dir}.")
exit(1)
else:
try:
######################################################################
-def save_additional_results(model, models):
+def save_additional_results(model, models, c_quizzes_procedure):
# Save generated quizzes with the successive generation steps
recorder = []
args.nb_new_c_quizzes_for_train = 100
args.nb_new_c_quizzes_for_test = 10
+if args.test == "gen":
+ save_additional_results(model, models, c_quizzes_procedure)
+ exit(0)
+
######################################################################
for n_epoch in range(current_epoch, args.nb_epochs):
log_string(f"wrote {filename}")
for model in weakest_models:
- save_additional_results(model, models)
+ save_additional_results(model, models, c_quizzes_procedure)
######################################################################