projects
/
culture.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c4d4765
)
Update.
author
François Fleuret
<francois@fleuret.org>
Thu, 4 Jul 2024 11:30:50 +0000
(14:30 +0300)
committer
François Fleuret
<francois@fleuret.org>
Thu, 4 Jul 2024 11:30:50 +0000
(14:30 +0300)
quizz_machine.py
patch
|
blob
|
history
diff --git
a/quizz_machine.py
b/quizz_machine.py
index
ee7af90
..
f00bf9e
100755
(executable)
--- a/
quizz_machine.py
+++ b/
quizz_machine.py
@@
-327,21
+327,6
@@
class QuizzMachine:
device=self.device,
)
device=self.device,
)
- #!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
- self.save_quizzes(
- result_dir,
- f"DEBUG_input_{n_epoch}_{result.size(0):04d}",
- quizzes=input[:72],
- prediction=True,
- )
- self.save_quizzes(
- result_dir,
- f"DEBUG_result_{n_epoch}_{result.size(0):04d}",
- quizzes=result[:72],
- prediction=True,
- )
- #!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
-
if self.back_accuracy:
n_forward = input[:, 0] == self.token_forward
nb_total = input[n_forward].size(0)
if self.back_accuracy:
n_forward = input[:, 0] == self.token_forward
nb_total = input[n_forward].size(0)