a1cdc5d5b8bc04f2aa8d253c52f149c28ddd8f21,base/base_trainer.py,BaseTrainer,train,#BaseTrainer#,58
Before Change
log = {"epoch": epoch}
for key, value in result.items():
if key == "metrics":
for i, metric in enumerate(self.metrics):
log[metric.__name__] = result["metrics"][i]
elif key == "val_metrics":
for i, metric in enumerate(self.metrics):
log["val_" + metric.__name__] = result["val_metrics"][i]
else:
After Change
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
if self.train_logger is not None:
self.train_logger.add_entry(log)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: victoresque/pytorch-template
Commit Name: a1cdc5d5b8bc04f2aa8d253c52f149c28ddd8f21
Time: 2018-09-30
Author: sunq0313@gmail.com
File Name: base/base_trainer.py
Class Name: BaseTrainer
Method Name: train
Project Name: theislab/scanpy
Commit Name: d9cf79a6f4746a794755e2e6837b3d45f74ac042
Time: 2020-11-25
Author: michal.klein@protonmail.com
File Name: scanpy/readwrite.py
Class Name:
Method Name: _download
Project Name: PIA-Group/BioSPPy
Commit Name: 11c1b43fb9696308683d7e995679cf78bb3c4aca
Time: 2015-09-03
Author: capcarr@github.fake
File Name: docs/conf.py
Class Name:
Method Name: