From: François Fleuret Date: Mon, 29 Jul 2024 13:36:07 +0000 (+0200) Subject: Update. X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=commitdiff_plain;h=0fb45928c3103413e72f155d0f2614a75667bc79;p=culture.git Update. --- diff --git a/main.py b/main.py index 7ed4f3d..9c8e0bd 100755 --- 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