3e3a35d37fa862f663648f1b9bca38e13d4edb6c,tensorforce/execution/parallel_runner.py,ParallelRunner,run,#ParallelRunner#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,88
Before Change
self.best_evaluation_score = evaluation_score
elif evaluation_score > self.best_evaluation_score:
self.best_evaluation_score = evaluation_score
self.agent.save(filename="best-model", append_timestep=False)
else:
self.evaluation_callback(self)
else:
After Change
self.best_evaluation_score = evaluation_score
elif evaluation_score > self.best_evaluation_score:
self.best_evaluation_score = evaluation_score
if self.save_best_agent is True:
self.agent.save(filename="best-model", append_timestep=False)
else:
self.agent.save(
directory=self.save_best_agent, filename="best-model",
append_timestep=False
)
else:
self.evaluation_callback(self)
else:
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 7
Instances
Project Name: reinforceio/tensorforce
Commit Name: 3e3a35d37fa862f663648f1b9bca38e13d4edb6c
Time: 2019-11-07
Author: alexkuhnle@t-online.de
File Name: tensorforce/execution/parallel_runner.py
Class Name: ParallelRunner
Method Name: run
Project Name: havakv/pycox
Commit Name: e9e7cba5509f9e4b4863ede4e1f0337c1876e68a
Time: 2018-04-20
Author: kvamme@samba8.ad.nr.no
File Name: pycox/cox.py
Class Name: CoxBase
Method Name: save_model_weights
Project Name: havakv/pycox
Commit Name: f3dabcf2c16d8ba0c702b18c9fccb633fa8b90d5
Time: 2018-04-25
Author: kvamme@samba8.ad.nr.no
File Name: pycox/torch_fitter.py
Class Name: FitNet
Method Name: save_model_weights
Project Name: reinforceio/tensorforce
Commit Name: 3e3a35d37fa862f663648f1b9bca38e13d4edb6c
Time: 2019-11-07
Author: alexkuhnle@t-online.de
File Name: tensorforce/execution/runner.py
Class Name: Runner
Method Name: run