Skip to content

Commit 95562f6

Browse files
committed
track accuracy
1 parent b8d502c commit 95562f6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

python_autocomplete/train.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ def step(self, batch: any, batch_idx: BatchIndex):
6767

6868
loss = self.loss_func(output, target)
6969
self.accuracy_func(output, target)
70+
self.accuracy_func.track()
7071
tracker.add("loss.", loss)
7172

7273
if self.mode.is_train:
@@ -243,7 +244,7 @@ def main():
243244
'valid_loader': 'shuffled_valid_loader'
244245
})
245246
experiment.add_pytorch_models(model=conf.model)
246-
# experiment.load('d5ba7f56d88911eaa6629b54a83956dc')
247+
# experiment.load('70df7f86450911eb887b25e3927208f3')
247248
with experiment.start():
248249
conf.run()
249250

0 commit comments

Comments
 (0)