665706a49aec7172e847ac99c80b0cb1994ae9e6,tensorforce/agents/pg_agent.py,PGAgent,add_observation,#PGAgent#Any#Any#Any#Any#,84
Before Change
path = get_path(self.continuous, self.current_episode)
self.current_batch.append(path)
self.model.update(self.current_batch)
self.current_episode = defaultdict(list)
self.current_batch = []
self.batch_steps = 0
def save_model(self, path):
After Change
if self.batch_step == self.batch_size:
self.current_batch.append(self.current_episode)
self.model.update(self.current_batch)
self.current_episode = self.model.zero_episode()
self.episode_step = 0
self.current_batch = []
self.batch_step = 0
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: reinforceio/tensorforce
Commit Name: 665706a49aec7172e847ac99c80b0cb1994ae9e6
Time: 2017-04-08
Author: aok25@cl.cam.ac.uk
File Name: tensorforce/agents/pg_agent.py
Class Name: PGAgent
Method Name: add_observation
Project Name: reinforceio/tensorforce
Commit Name: f5f5d0e82bb2e79da9cb481b13f56fc3c43e744c
Time: 2017-04-09
Author: mi.schaarschmidt@gmail.com
File Name: tensorforce/agents/distributed_agent.py
Class Name: DistributedAgent
Method Name: __init__
Project Name: reinforceio/tensorforce
Commit Name: f5f5d0e82bb2e79da9cb481b13f56fc3c43e744c
Time: 2017-04-09
Author: mi.schaarschmidt@gmail.com
File Name: tensorforce/agents/distributed_agent.py
Class Name: DistributedAgent
Method Name: update