X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=quiz_machine.py;h=de1e8d1c0bee7532f64a65d78c9af5a49a6b1821;hb=c9c9df43a6b97e5b3e81c8cf05d2f1b3010dea05;hp=d4af77027d73c0017efe8cbecfaad8fcfc468cad;hpb=ceddc8cc3adbb045fdef1ccb0b3df2b8fed9eb4c;p=culture.git diff --git a/quiz_machine.py b/quiz_machine.py index d4af770..de1e8d1 100755 --- a/quiz_machine.py +++ b/quiz_machine.py @@ -359,11 +359,11 @@ class QuizMachine: backward_nb_total = correct[n_backward].size(0) self.logger( - f"{log_prefix}_forward_accuracy {n_epoch} {model.id=} {forward_nb_correct} / {forward_nb_total}" + f"{log_prefix}_forward_accuracy {n_epoch} model {model.id} nb_correct {forward_nb_correct} / {forward_nb_total}" ) self.logger( - f"{log_prefix}_backward_accuracy {n_epoch} {model.id=} {backward_nb_correct} / {backward_nb_total}" + f"{log_prefix}_backward_accuracy {n_epoch} model {model.id} nb_correct {backward_nb_correct} / {backward_nb_total}" ) return result, correct