projects
/
culture.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update.
[culture.git]
/
main.py
diff --git
a/main.py
b/main.py
index
fd8ab41
..
67c57c0
100755
(executable)
--- a/
main.py
+++ b/
main.py
@@
-437,7
+437,8
@@
def create_c_quizzes(
for n in range(nb_correct.max() + 1):
recorded[n].append(new_c_quizzes[nb_correct == n].clone())
for n in range(nb_correct.max() + 1):
recorded[n].append(new_c_quizzes[nb_correct == n].clone())
- nv = [recorded[n][-1].size(0) for n in recorded.keys()]
+ nv = F.one_hot(nb_correct, num_classes=len(models) + 1).sum(0)
+ nv = " ".join([str(x.item()) for x in nv])
log_string(f"keep c_quizzes kept {nv} total {nb_validated()} / {nb_to_create}")
log_string(f"keep c_quizzes kept {nv} total {nb_validated()} / {nb_to_create}")