parser.add_argument("--nb_hints", type=int, default=5)
-parser.add_argument("--nb_runs", type=int, default=5)
+parser.add_argument("--nb_runs", type=int, default=1)
parser.add_argument("--dirty_debug", action="store_true", default=False)
######################################################################
-def save_c_quizzes_with_scores(models, c_quizzes, nb, filename, solvable_only=False):
+def save_c_quizzes_with_scores(models, c_quizzes, filename, solvable_only=False):
l = []
with torch.autograd.no_grad():
filename = f"culture_c_quiz_{n_epoch:04d}.png"
save_c_quizzes_with_scores(
- models, c_quizzes, 256, filename, solvable_only=False
+ models, c_quizzes[:256], filename, solvable_only=False
)
+
filename = f"culture_c_quiz_{n_epoch:04d}_solvable.png"
- save_c_quizzes_with_scores(models, c_quizzes, 256, filename, solvable_only=True)
+ save_c_quizzes_with_scores(
+ models, c_quizzes[:256], filename, solvable_only=True
+ )
log_string(f"generated_c_quizzes {c_quizzes.size()=}")