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.

EpochOutputStore can optionally store the data to the state

See original GitHub issue

🚀 Feature

The idea is to give an option to have the following:

eos = EpochOutputStore()

evaluator = create_supervised_evaluator(model, metrics)
eos.attach(evaluator, name="eval_data")

# Adding the name is equivalent to
# name = "eval_data"
# @evaluator.on(Events.EPOCH_COMPLETED, name)
# def store_data(engine, name):
#     setattr(engine.state, name, eos.data)

state = evaluator.run(data)
print(len(state.eval_data))

In addition, it would make sense to move it from contrib to core as well, keeping BC.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
radekosmulskicommented, Apr 27, 2021

I opened #1974 but it is probably quite basic, happy to implement any changes that might be needed 🙂

This is only a draft - as a next step, will move it out of contrib keeping BC.

1reaction
radekosmulskicommented, Apr 27, 2021

@vfdev-5 - would love to! Will read through the code today and either come here to ask questions if anything is unclear or will start working on a draft of the implementation 🙂

Read more comments on GitHub >

github_iconTop Results From Across the Web

EpochOutputStore — PyTorch-Ignite v0.4.10 Documentation
EpochOutputStore handler to save output prediction and target history after every ... If name is passed, will store self.data on engine.state under name...
Read more >
High-level library to help with training neural networks in ...
The first argument can be optionally engine , but not necessary. Thus, we do not require to inherit from an interface and override...
Read more >

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