722552e32c4c218b00abcdb1464dd2dbcbfa0f2f,src/garage/np/algos/cma_es.py,CMAES,train,#CMAES#Any#,66

Before Change


        self.policy.set_param_values(self._cur_params)
        self._all_returns = []

        return super().train(runner)

    def train_once(self, itr, paths):
        Perform one step of policy optimization given one batch of samples.

After Change


        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.
Italian Trulli
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/cma_es.py
Class Name: CMAES
Method Name: train


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: tensorflow/tpu
Commit Name: c1db25d9281a9374005d5c8b4e183b8e6d7d2ace
Time: 2017-09-06
Author: frankchn@google.com
File Name: cloud_tpu/models/inception_v3/inception_v3.py
Class Name:
Method Name: main