MCPcopy
hub / github.com/tensorlayer/TensorLayer / step

Method step

examples/reinforcement_learning/tutorial_wrappers.py:508–513  ·  view source on GitHub ↗
(self, action)

Source from the content-addressed store, hash-verified

506 return self.env.reset(**kwargs)
507
508 def step(self, action):
509 o_, r, done, info = self.env.step(action)
510 self._monitor_rewards.append(r)
511 if done:
512 info['episode'] = {'r': sum(self._monitor_rewards), 'l': len(self._monitor_rewards)}
513 return o_, r, done, info
514
515
516class NormalizedActions(gym.ActionWrapper):

Callers 15

pytorch_test.pyFile · 0.45
tutorial_PG.pyFile · 0.45
tutorial_PPO.pyFile · 0.45
tutorial_SAC.pyFile · 0.45
tutorial_TD3.pyFile · 0.45
tutorial_DDPG.pyFile · 0.45
stepMethod · 0.45
resetMethod · 0.45
stepMethod · 0.45
resetMethod · 0.45
stepMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected