300f38d4757129595ed441459eddb304f4a87d61,base/base_trainer.py,BaseTrainer,__init__,#BaseTrainer#Any#Any#Any#Any#Any#Any#,16
Before Change
self.start_epoch = 1
// setup directory for checkpoint saving
start_time = datetime.datetime.now().strftime("%m%d_%H%M%S")
self.checkpoint_dir = os.path.join(cfg_trainer["save_dir"], config["name"], start_time)
// setup visualization writer instance
writer_dir = os.path.join(cfg_trainer["log_dir"], config["name"], start_time)
self.writer = WriterTensorboardX(writer_dir, self.logger, cfg_trainer["tensorboardX"])
After Change
self.start_epoch = 1
// setup directory for checkpoint saving and tensorboard logging
self.checkpoint_dir, writer_dir = trainer_paths(config)
// setup visualization writer instance
self.writer = WriterTensorboardX(writer_dir, self.logger, cfg_trainer["tensorboardX"])
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 5
Instances
Project Name: victoresque/pytorch-template
Commit Name: 300f38d4757129595ed441459eddb304f4a87d61
Time: 2019-04-15
Author: karlhornlund@gmail.com
File Name: base/base_trainer.py
Class Name: BaseTrainer
Method Name: __init__
Project Name: yzhao062/pyod
Commit Name: abf37e5b9a3e46d2c9e07e32ee947b4b74e64057
Time: 2018-12-01
Author: zain.nasrullah@ca.pwc.com
File Name: examples/temp_do_not_use_lscp.py
Class Name:
Method Name:
Project Name: akkana/scripts
Commit Name: aae1695323945431fbe74b649e0fab5f5a2bb704
Time: 2018-08-13
Author: akkana@shallowsky.com
File Name: cachefile.py
Class Name: Cachefile
Method Name: get_data
Project Name: dmlc/gluon-cv
Commit Name: 4b8716fd4bd6f462a9db9eee958f2508576ec019
Time: 2018-06-15
Author: cheungchih@gmail.com
File Name: gluoncv/utils/metrics/coco_detection.py
Class Name: COCODetectionMetric
Method Name: __init__