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.

Defining trainers and evaluators

See original GitHub issue

If I have a training step that takes a different form from the inferencing step, and I have defined these functions separately,

def train_step(e, b):
    ...
    ...
    return batch_loss
trainer = Engine(train_step)

and

def infer_step(e, b):
    ...
    return batch_loss
evaluator = Engine(infer_step)

do I still need to define create_supervised_trainer and create_supervised_evaluator? If yes, do I need to define

def run_traiin(engine):
    train_evaluator.run(train_loader)
def run_validation(engine):
    infer_evaluator.run(valid_loader) 

Do I need to do trainer.add_event_handler(Events.EPOCH_STARTED(every=1), run_train) evaluator.add_event_handler(Events.EPOCH_STARTED(every=1), run_validation)

I am a bit confused here.

Or I can do @trainer.on(Events...) add the evaluation execution here

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
vfdev-5commented, Feb 4, 2021

@etetteh you can reach out to me at discord: vfdev-5 #4458 or via the email (avoiding basics bots, to get the email, please, run git log -1 on the cloned repository).

1reaction
etettehcommented, Feb 4, 2021

Thanks, and you’ve been of great help. Wish I could contact you for a discussion via email. I will check the profiling. My images are 224X224, and I guess that’s also a reason I installed from the repo.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Evaluate | Training Development - CDC
Training evaluation is the systematic process of collecting information and using that information to improve your training.
Read more >
5 Best Ways to Evaluate Training Effectiveness and Impact
Training evaluation refers to an attempt to obtain relevant information on the effects of a training program. It is considered an essential ...
Read more >
The Process of Evaluating Training Programs - SafetyCulture
Training evaluation is the systematic process of analyzing training programs to ensure that it is delivered effectively and efficiently.
Read more >
The Basics of Training Evaluation - A Practical Guide
Training program evaluation is the regular analysis of how efficient and effective training programs are. It involves feedback from learners, ...
Read more >
Model for evaluating teacher and trainer competences - ERIC
In the model proposed, teachers/trainers are evaluated through processes of self- and hetero-evaluation, the resulting data being analysed in discussion and ...
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