Update.
authorFrançois Fleuret <francois@fleuret.org>
Wed, 17 Jul 2024 03:53:27 +0000 (05:53 +0200)
committerFrançois Fleuret <francois@fleuret.org>
Wed, 17 Jul 2024 03:53:27 +0000 (05:53 +0200)
quiz_machine.py

index 1168921..14e8739 100755 (executable)
@@ -365,7 +365,7 @@ class QuizMachine:
                 seq_logproba=seq_logproba,
                 temperature=1.0,
                 deterministic_synthesis=deterministic_synthesis,
-                progress_bar_desc=None,
+                progress_bar_desc="accuracy",
                 device=self.device,
             )
 
@@ -402,7 +402,7 @@ class QuizMachine:
             model.test_w_quizzes[:2000], log_prefix="test"
         )
 
-        n_test_forward = model.test_w_quizzes[:, 0] == self.token_forward
+        n_test_forward = model.test_w_quizzes[:2000, 0] == self.token_forward
 
         forward_test_correct = test_correct[n_test_forward]