54ca2c098233300e63491dad6932220d01743c56,catalyst/rl/core/sampler.py,Sampler,_run_trajectory_loop,#Sampler#,176

Before Change


            elapsed_time=elapsed_time)

        self.trajectory_index += 1
        if self.trajectory_index % self._gc_period == 0:
            gc.collect()
        if self.trajectory_index >= self._trajectory_limit:
            return

    def _run_sample_loop(self):

After Change


        self.trajectory_sampler.reset(exploration_strategy)

        start_time = time.time()
        trajectory, trajectory_info = self.trajectory_sampler.sample(
            exploration_strategy=exploration_strategy)
        elapsed_time = time.time() - start_time
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: catalyst-team/catalyst
Commit Name: 54ca2c098233300e63491dad6932220d01743c56
Time: 2019-06-06
Author: scitator@gmail.com
File Name: catalyst/rl/core/sampler.py
Class Name: Sampler
Method Name: _run_trajectory_loop


Project Name: calico/basenji
Commit Name: 8cae9860b1ae048c3bed91e1c5014583c20e1380
Time: 2018-10-18
Author: drk@calicolabs.com
File Name: bin/basenji_train2.py
Class Name:
Method Name: run