Defining trainers and evaluators
See original GitHub issueIf 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:
- Created 3 years ago
- Comments:6
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@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).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.