722552e32c4c218b00abcdb1464dd2dbcbfa0f2f,src/garage/np/algos/cem.py,CEM,train,#CEM#Any#,87
Before Change
"n_samples is too low. Make sure that n_samples * best_frac >= 1")
self.n_params = len(self.cur_mean)
return super ().train(runner)
def train_once(self, itr, paths):
Perform one step of policy optimization given one batch of samples.
After Change
// start actual training
last_return = None
for _ in runner.step_epochs():
for _ in range(self._n_samples):
runner.step_path = runner.obtain_samples(runner.step_itr)
last_return = self.train_once(runner.step_itr,
runner.step_path)
runner.step_itr += 1
return last_return
def train_once(self, itr, paths):
Perform one step of policy optimization given one batch of samples.
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances Project Name: rlworkgroup/garage
Commit Name: 722552e32c4c218b00abcdb1464dd2dbcbfa0f2f
Time: 2020-06-01
Author: ericyihc@usc.edu
File Name: src/garage/np/algos/cem.py
Class Name: CEM
Method Name: train
Project Name: rlworkgroup/garage
Commit Name: 722552e32c4c218b00abcdb1464dd2dbcbfa0f2f
Time: 2020-06-01
Author: ericyihc@usc.edu
File Name: src/garage/np/algos/cma_es.py
Class Name: CMAES
Method Name: train
Project Name: AIRLab-POLIMI/mushroom
Commit Name: fa2cd0c7f0d382d2bb3726e9cec392962b9e35a0
Time: 2017-09-11
Author: carlo.deramo@gmail.com
File Name: mushroom/algorithms/batch_td.py
Class Name: DeepFQI
Method Name: draw_action