Update.
authorFrançois Fleuret <francois@fleuret.org>
Mon, 29 Jul 2024 13:36:07 +0000 (15:36 +0200)
committerFrançois Fleuret <francois@fleuret.org>
Mon, 29 Jul 2024 13:36:07 +0000 (15:36 +0200)
main.py

diff --git a/main.py b/main.py
index 7ed4f3d..9c8e0bd 100755 (executable)
--- a/main.py
+++ b/main.py
@@ -866,44 +866,6 @@ log_string(
 
 ######################################################################
 
-#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
-if False:
-    for model in models:
-        for b in range(args.nb_blocks):
-            for o in [0.5, 1.0, 2.0]:
-
-                def model_transformer_hot(model):
-                    # model.temperature = args.temperature_hot
-                    model.set_noise_injection(o, ("ffw", b))
-
-                def model_transformer_cold(model):
-                    pass
-
-                # model.temperature = args.temperature_cold
-
-                c_quizzes_procedure = [
-                    # (("f_B", "f_A", "A", "B"), (1, 0, 0, 0), model_transformer_hot),
-                    # (("f_B", "f_A", "A", "B"), (0, 1, 1, 1), model_transformer_cold),
-                    # (("A", "f_A", "B", "f_B"), (0, 0, 0, 1), model_transformer_cold),
-                    (("A", "f_A", "B", "f_B"), (1, 1, 1, 1), model_transformer_hot),
-                ]
-
-                c_quizzes = quiz_machine.generate_c_quizzes(
-                    128, model_for_generation=model, procedure=c_quizzes_procedure
-                )
-
-                filename = f"generated_{b:02d}_{o:.02f}_{model.id:02d}.png"
-                print(filename)
-
-                quiz_machine.problem.save_quizzes_as_image(
-                    args.result_dir,
-                    filename,
-                    c_quizzes,
-                )
-        exit(0)
-
-#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
-
 if args.dirty_debug:
     args.accuracy_to_make_c_quizzes = 0.0
     args.nb_gpts = 2