def quiz_validation(models, c_quizzes, local_device):
nb_have_to_be_correct = 3
- nb_have_to_be_wrong = 3
+ nb_have_to_be_wrong = 1
nb_mistakes_to_be_wrong = 5
record_wrong = []
c_quizzes = ae_generate(model, template, mask_generate)
#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
- for quad in [(0, 1, 0, 0), (0, 0, 0, 1)]:
- mask_generate = quiz_machine.make_quiz_mask(
- quizzes=c_quizzes,
- quad_order=("A", "f_A", "B", "f_B"),
- quad_mask=quad,
- )
- c_quizzes = ae_generate(
- model,
- (1 - mask_generate) * c_quizzes,
- mask_generate,
- )
+ ## for quad in [(0, 1, 0, 0), (0, 0, 0, 1)]:
+ ## mask_generate = quiz_machine.make_quiz_mask(
+ ## quizzes=c_quizzes,
+ ## quad_order=("A", "f_A", "B", "f_B"),
+ ## quad_mask=quad,
+ ## )
+ ## c_quizzes = ae_generate(
+ ## model,
+ ## (1 - mask_generate) * c_quizzes,
+ ## mask_generate,
+ ## )
#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
to_keep = quiz_machine.problem.trivial(c_quizzes) == False
},
os.path.join(args.result_dir, filename),
)
-
- log_string(f"wrote {filename}")
+ log_string(f"wrote {filename}")
# --------------------------------------------------------------------
},
os.path.join(args.result_dir, filename),
)
-
log_string(f"wrote {filename}")
# --------------------------------------------------------------------