ab5e5c897c2db06f2bd59c63e314643e1b0b8888,src/garage/sampler/off_policy_vectorized_sampler.py,OffPolicyVectorizedSampler,obtain_samples,#OffPolicyVectorizedSampler#Any#Any#Any#,78

Before Change


                        self._last_uncounted_discount[idx] = 0

                    if self.algo.es:
                        self.algo.es.reset()
            obses = next_obses
        return paths

After Change


        n_samples = 0

        policy = self.algo.exploration_policy
        if policy is None:
            raise ValueError("OffPolicyVectoriizedSampler should only be used "
                             "with an exploration_policy.")
        while n_samples < batch_size:
            policy.reset(completes)
            obs_space = self.algo.env_spec.observation_space
            input_obses = obs_space.flatten_n(obses)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: rlworkgroup/garage
Commit Name: ab5e5c897c2db06f2bd59c63e314643e1b0b8888
Time: 2020-05-19
Author: 41180126+krzentner@users.noreply.github.com
File Name: src/garage/sampler/off_policy_vectorized_sampler.py
Class Name: OffPolicyVectorizedSampler
Method Name: obtain_samples


Project Name: deepmind/dm_control
Commit Name: 86e55b3bc7598a5b899a2e546d8e60366cb228b7
Time: 2019-01-11
Author: stunya@google.com
File Name: dm_control/composer/environment.py
Class Name: Environment
Method Name: reset


Project Name: elfi-dev/elfi
Commit Name: e3f4b018d3591f239c6d59cc93b895be4c1791fa
Time: 2017-03-31
Author: jarno.lintusaari@aalto.fi
File Name: elfi/methods/methods.py
Class Name: BayesianOptimization
Method Name: init_inference