a4cac743f6094a5f9168a2b31c9481ace2d9957f,tensorforce/rl_agents/pg_agent.py,PGAgent,add_observation,#PGAgent#Any#Any#Any#Any#,69
Before Change
:param terminal:
:return:
state = self.filter(state)
self.batch_steps += 1
self.current_episode["states"].append(state)
self.current_episode["actions"].append(self.last_action)
self.current_episode["rewards"].append(reward)
After Change
// Transform into np arrays, append episode to batch, start new episode dict
path = self.get_path()
self.current_batch.append(path)
print("Episode finished, length=" + str(len(path["states"])))
self.current_episode = defaultdict(list)
if self.batch_steps == self.batch_size:
In pattern: SUPERPATTERN
Frequency: 6
Non-data size: 3
Instances
Project Name: reinforceio/tensorforce
Commit Name: a4cac743f6094a5f9168a2b31c9481ace2d9957f
Time: 2017-01-19
Author: mi.schaarschmidt@gmail.com
File Name: tensorforce/rl_agents/pg_agent.py
Class Name: PGAgent
Method Name: add_observation
Project Name: comic/grand-challenge.org
Commit Name: 6ac71c8dea5f7bb18e6f5ca040ad9313427b2d9b
Time: 2020-01-28
Author: 57257130+MikeOverkamp-diag@users.noreply.github.com
File Name: app/grandchallenge/reader_studies/signals.py
Class Name:
Method Name: assign_score
Project Name: coala/coala-bears
Commit Name: b68ab2b4e4cbea341e9b2d16cc58cd24a5859aa5
Time: 2016-07-27
Author: toabhayraizada@gmail.com
File Name: bears/general/AnnotationBear.py
Class Name: AnnotationBear
Method Name: run
Project Name: MTG/freesound
Commit Name: ad76d9b9f2442e0c938ef100415f35055b823c11
Time: 2017-11-10
Author: andres.ferraro@upf.edu
File Name: search/management/commands/post_dirty_sounds_to_solr.py
Class Name: Command
Method Name: handle
Project Name: oddt/oddt
Commit Name: 86ceebf0fc2ca02f5f52d550064adc0be626f0cf
Time: 2017-11-23
Author: maciek@wojcikowski.pl
File Name: oddt/toolkits/extras/rdkit.py
Class Name:
Method Name: MolFromPDBQTBlock
Project Name: samuelclay/NewsBlur
Commit Name: b2e52858eaa04dda7a13803aeff84e2897c2c453
Time: 2013-03-19
Author: samuel@ofbrooklyn.com
File Name: apps/social/views.py
Class Name:
Method Name: mark_story_as_shared