Skip to content

Commit ff8c6c5

Browse files
committed
fixed main for merge
1 parent 4ab5bd7 commit ff8c6c5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

main.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def main():
109109
metrics(y, preds)
110110

111111
break
112-
print(metrics.__getmetrics__())
112+
print(metrics.accumulate())
113113
print("Dry run completed successfully.")
114114
exit(0)
115115

@@ -135,8 +135,8 @@ def main():
135135
preds = th.argmax(logits, dim=1)
136136
metrics(y, preds)
137137

138-
wandb.log(metrics.__getmetrics__(str_prefix="Train "))
139-
metrics.__resetvalues__()
138+
wandb.log(metrics.accumulate(str_prefix="Train "))
139+
metrics.reset()
140140

141141
evalloss = []
142142
# Eval loop start
@@ -151,8 +151,8 @@ def main():
151151
preds = th.argmax(logits, dim=1)
152152
metrics(y, preds)
153153

154-
wandb.log(metrics.__getmetrics__(str_prefix="Evaluation "))
155-
metrics.__resetvalues__()
154+
wandb.log(metrics.accumulate(str_prefix="Evaluation "))
155+
metrics.reset()
156156

157157
wandb.log(
158158
{

0 commit comments

Comments
 (0)