09e72f2042e26725632082d93df70cbc86071d38,reagent/gym/tests/preprocessors/test_replay_buffer_inserters.py,TestBasicReplayBufferInserter,test_cartpole,#TestBasicReplayBufferInserter#,12
Before Change
i = 0
while not terminal and i < 5:
action = env.action_space.sample()
next_obs, reward, terminal, _ = env.step(action)
replay_buffer_inserter(
replay_buffer, obs, action, reward, terminal, log_prob=0.0
)
obs = next_obs
After Change
inserted[1]["observation"], batch.next_state.squeeze(0)
)
npt.assert_array_equal(inserted[0]["action"], batch.action.squeeze(0))
npt.assert_array_equal(inserted[1]["action"], batch.next_action.squeeze(0))
class TestRecSimReplayBufferInserter(HorizonTestBase):
@unittest.skipIf(not HAS_RECSIM, "RecSim not installed")
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: facebookresearch/Horizon
Commit Name: 09e72f2042e26725632082d93df70cbc86071d38
Time: 2020-05-13
Author: kittipat@fb.com
File Name: reagent/gym/tests/preprocessors/test_replay_buffer_inserters.py
Class Name: TestBasicReplayBufferInserter
Method Name: test_cartpole
Project Name: openai/gym
Commit Name: 8962984eed19d1ac5460edb55d7cb6b85c4ef0dc
Time: 2019-10-18
Author: zuoxingdong@users.noreply.github.com
File Name: gym/wrappers/test_atari_preprocessing.py
Class Name:
Method Name: test_atari_preprocessing_grayscale
Project Name: chainer/chainerrl
Commit Name: a4f6690b9c4290a7f47761100523ff2ef5335964
Time: 2019-04-28
Author: muupan@gmail.com
File Name: tests/agents_tests/test_trpo.py
Class Name: TestTRPO
Method Name: _test_abc