cb8c25ee7b45baad0c8111f574198a8aa7cc37bc,glyph/application.py,GPRunner,_update,#GPRunner#,74
Before Change
if not self.mstats:
self.mstats = create_stats(len(self.population[0].fitness.values))
record = self.mstats.compile(self.population)
self.logbook.record(gen=self.step_count, evals=evals, **record)
@contextmanager
After Change
def _update(self):
self._evals = self.assessment_runner(self.population)
for cb in self.callbacks:
cb(self)
@contextmanager
def random_state(cls, rng=random):
Do work inside this contextmanager with a random state defined by cls.
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances Project Name: Ambrosys/glyph
Commit Name: cb8c25ee7b45baad0c8111f574198a8aa7cc37bc
Time: 2017-05-26
Author: mquade@uni-potsdam.de
File Name: glyph/application.py
Class Name: GPRunner
Method Name: _update
Project Name: dnouri/skorch
Commit Name: a5f83e8f1e29c62070333d6ce48009e2fdb323b9
Time: 2017-07-19
Author: benjamin.bossan@ottogroup.com
File Name: inferno/callbacks.py
Class Name: AverageLoss
Method Name: on_epoch_end
Project Name: dmlc/gluon-nlp
Commit Name: 090944e816fd3ff8e861fba4452851e0a901491d
Time: 2019-01-28
Author: linhaibin.eric@gmail.com
File Name: scripts/language_model/large_word_language_model.py
Class Name:
Method Name: train
Project Name: tensorflow/tensorboard
Commit Name: 394ac5324cba203735b12542db64eb6bea5157d3
Time: 2018-09-04
Author: nfelt@users.noreply.github.com
File Name: tensorboard/backend/event_processing/event_file_loader.py
Class Name: EventFileLoader
Method Name: Load