e38d5d92c6ec69efbe03034fe659c88d2815e7cc,skorch/callbacks/training.py,Checkpoint,on_epoch_end,#Checkpoint#Any#,80
Before Change
if do_checkpoint:
target = self.target
if isinstance(self.target, str):
target = self.target.format(
net=net,
last_epoch=net.history[-1],
last_batch=net.history[-1, "batches", -1],
)
self._sink("Checkpoint! Saving model to {}.".format(target), net.verbose)
net.save_params(target)
net.history.record("event_cp", bool(do_checkpoint))
After Change
"validation scores for checkpointing.".format(e.args[0]))
if do_checkpoint:
self.save_model(net)
self._sink("A checkpoint was triggered in epoch {}.".format(
len(net.history) + 1
), net.verbose)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances Project Name: dnouri/skorch
Commit Name: e38d5d92c6ec69efbe03034fe659c88d2815e7cc
Time: 2018-07-26
Author: alexandrov88@gmail.com
File Name: skorch/callbacks/training.py
Class Name: Checkpoint
Method Name: on_epoch_end
Project Name: pyannote/pyannote-audio
Commit Name: e81f54bb33f4a41c2ebdfdda41e5d70b52c32c87
Time: 2017-05-05
Author: bredin@limsi.fr
File Name: pyannote/audio/callback.py
Class Name: LoggingCallback
Method Name: on_epoch_end
Project Name: automl/auto-sklearn
Commit Name: 838f3aa207070d7f8f02f529a5f45076e0caab66
Time: 2015-10-01
Author: feurerm@informatik.uni-freiburg.de
File Name: autosklearn/cli/base_interface.py
Class Name:
Method Name: make_mode_holdout
Project Name: lcswillems/torch-rl
Commit Name: 907a86e9c4af4ad476c9d4a7201f87f01b835f0d
Time: 2018-04-14
Author: lcswillems@gmail.com
File Name: train.py
Class Name:
Method Name: