question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

valid_world.epoch_done() in train_model.py never finishes

See original GitHub issue

I checked a memory networks model with babi dataset. But I found valid_world.epoch_done never finishes. https://github.com/facebookresearch/ParlAI/blob/master/examples/train_model.py#L91

  • My revision 55ca9c (Jan 11, 2018)

  • the log

$ python examples/train_model.py -t dialog_babi:Task:1 -m memnn -mf /tmp/model_memnn  -e 1
...
[ time:68s parleys:5873 time_left:1s num_epochs:0 ] {'total': 204, 'accuracy': 0.09804, 'f1': 0.1517, 'hits@k': {1: 0.098, 5: 0.333, 10: 0.725, 100: 1.0}}
[ time:69s parleys:6024 time_left:0s num_epochs:1 ] {'total': 151, 'accuracy': 0.1192, 'f1': 0.1749, 'hits@k': {1: 0.119, 5: 0.377, 10: 0.695, 100: 1.0}}
[ num_epochs completed:1.0 time elapsed:69.75176429748535s ]
[ running eval: valid ]
[creating task(s): dialog_babi:Task:1]
[loading fbdialog data:/home/jonki/work/ParlAI/data/dialog-bAbI/dialog-bAbI-tasks/dialog-babi-task1-API-calls-dev.txt]
// never breaks while-loop

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
alexholdenmillercommented, Jan 23, 2018
0reactions
jojonkicommented, Jan 23, 2018

It is helpful indeed. And when will you release the faster version? Please let me know if you have a plan in your mind about this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found