102123eef25500a39160412eca7e8cb9f53104a6,base/base_trainer.py,BaseTrainer,train,#BaseTrainer#,60
Before Change
// save logged informations into log dict
log = {"epoch": epoch}
for key, value in result.items():
if key == "metrics":
log.update({mtr.__name__: value[i] for i, mtr in enumerate(self.metrics)})
elif key == "val_metrics":
log.update({"val_" + mtr.__name__: value[i] for i, mtr in enumerate(self.metrics)})
else:
log[key] = value
// print logged informations to the screen
for key, value in log.items():
self.logger.info(" {:15s}: {}".format(str(key), value))
// evaluate model performance according to configured metric, save best checkpoint as model_best
After Change
// save logged informations into log dict
log = {"epoch": epoch}
log.update(result)
// print logged informations to the screen
for key, value in log.items():
self.logger.info(" {:15s}: {}".format(str(key), value))
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
Instances Project Name: victoresque/pytorch-template
Commit Name: 102123eef25500a39160412eca7e8cb9f53104a6
Time: 2019-09-10
Author: SunQ0313@gmail.com
File Name: base/base_trainer.py
Class Name: BaseTrainer
Method Name: train
Project Name: AlexsLemonade/refinebio
Commit Name: 12f35440fc203fbd096d4090d834b306dbc4d290
Time: 2019-08-08
Author: 13942258+wvauclain@users.noreply.github.com
File Name: common/data_refinery_common/migrations/0026_fix_typo_in_sample_manufacturer.py
Class Name:
Method Name: fix_typo_in_sample_manufacturer
Project Name: tyarkoni/pliers
Commit Name: 9007173bc361484fb7484d3abff437d91717c602
Time: 2018-06-14
Author: quinten.mcnamara@gmail.com
File Name: pliers/extractors/api/google.py
Class Name: GoogleLanguageAPIExtractor
Method Name: _to_df