52ded0132991ed5142f3b1587b02b4b509c524f3,pycox/callbacks.py,TrainingLogger,get_measures,#TrainingLogger#,122
Before Change
return False
def get_measures(self):
string = "\tloss: %.4f," % self.loss[-1]
if self.verbose.__class__ is dict:
for name, mm in self.verbose.items():
string += "\t%s:" % name
for sc in mm.scores:
After Change
for name, mm in measures.items():
string += "\t%s:" % name
scores = mm.scores
if not hasattr(scores[-1], "__iter__"):
scores = [scores]
for sc in mm.scores:
string += " %.4f," % sc[-1]
return string[:-1]
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances Project Name: havakv/pycox
Commit Name: 52ded0132991ed5142f3b1587b02b4b509c524f3
Time: 2018-03-12
Author: kvamme@samba8.ad.nr.no
File Name: pycox/callbacks.py
Class Name: TrainingLogger
Method Name: get_measures
Project Name: farizrahman4u/recurrentshop
Commit Name: a982d348b6d0efcf607307a4fe757ed7380e9dc3
Time: 2017-05-07
Author: farizrahman4u@gmail.com
File Name: recurrentshop/engine.py
Class Name: RecurrentSequential
Method Name: build
Project Name: explosion/thinc
Commit Name: cc53003029d11839c394a9544a1394b62721869d
Time: 2019-10-18
Author: honnibal+gh@gmail.com
File Name: thinc/extra/wrappers.py
Class Name: PyTorchWrapper
Method Name: use_params