parser.add_argument("--deterministic_synthesis", action="store_true", default=False)
-parser.add_argument("--both_directions", action="store_true", default=False)
-
parser.add_argument("--problem", type=str, default="sky")
parser.add_argument("--nb_gpts", type=int, default=5)
-parser.add_argument("--min_to_validate", type=int, default=4)
+parser.add_argument("--min_to_validate", type=int, default=None)
-parser.add_argument("--max_to_validate", type=int, default=4)
+parser.add_argument("--max_to_validate", type=int, default=None)
parser.add_argument("--accuracy_to_make_c_quizzes", type=float, default=0.975)
+parser.add_argument("--generation_temperature", type=float, default=2.0)
+
+parser.add_argument("--deterministic_validation", action="store_true", default=False)
+
+parser.add_argument("--bidirectional_validation", action="store_true", default=False)
+
parser.add_argument("--dirty_debug", action="store_true", default=False)
+######################################################################
+
parser.add_argument("--sky_height", type=int, default=6)
parser.add_argument("--sky_width", type=int, default=8)
args = parser.parse_args()
+if args.min_to_validate is None:
+ args.min_to_validate = args.nb_gpts - 1
+
+if args.max_to_validate is None:
+ args.max_to_validate = args.nb_gpts - 1
+
if args.result_dir is None:
args.result_dir = f"results_culture"
c_quizzes = quizz_machine.generate_quizzes(
nb_to_create,
model_for_generation=model_for_generation,
+ temperature=args.generation_temperature,
)
nb_correct, seq_logproba = quizz_machine.compute_correctness(
- c_quizzes, models, both_directions=args.both_directions
+ c_quizzes,
+ models,
+ bidirectional_validation=args.bidirectional_validation,
+ deterministic_validation=args.deterministic_validation,
)
for n, l in zip(nb_correct, seq_logproba):