4bf79226f8f36f96938359b429a86889bc99c94e,tensorforce/tests/test_trpo_agent.py,TestTRPOAgent,test_continuous,#TestTRPOAgent#,54
Before Change
runner.run(episodes=5000, episode_finished=episode_finished)
print("TRPO Agent (continuous): " + str(runner.episode))
self.assertTrue(runner.episode < 5000)
After Change
self.assertTrue(passed >= 4)
def test_continuous(self):
passed = 0
for _ in xrange(5):
environment = MinimalTest(continuous=True)
config = Configuration(
batch_size=8,
cg_iterations=20,
cg_damping=0.001,
line_search_steps=20,
max_kl_divergence=0.05,
states=environment.states,
actions=environment.actions,
network=layered_network_builder([dict(type="dense", size=32)])
)
agent = TRPOAgent(config=config)
runner = Runner(agent=agent, environment=environment)
def episode_finished(r):
return r.episode < 100 or not all(x >= 1.0 for x in r.episode_rewards[-100:])
runner.run(episodes=5000, episode_finished=episode_finished)
print("TRPO Agent (continuous): " + str(runner.episode))
if runner.episode < 5000:
passed += 1
print("passed")
else:
print("failed")
print("TRPO continuous agent passed = {}".format(passed))
self.assertTrue(passed >= 4)
In pattern: SUPERPATTERN
Frequency: 6
Non-data size: 12
Instances
Project Name: reinforceio/tensorforce
Commit Name: 4bf79226f8f36f96938359b429a86889bc99c94e
Time: 2017-06-11
Author: mi.schaarschmidt@gmail.com
File Name: tensorforce/tests/test_trpo_agent.py
Class Name: TestTRPOAgent
Method Name: test_continuous
Project Name: reinforceio/tensorforce
Commit Name: 4bf79226f8f36f96938359b429a86889bc99c94e
Time: 2017-06-11
Author: mi.schaarschmidt@gmail.com
File Name: tensorforce/tests/test_trpo_agent.py
Class Name: TestTRPOAgent
Method Name: test_discrete
Project Name: reinforceio/tensorforce
Commit Name: 6f1d8c0760135d6288073e6a687e20bd544fac46
Time: 2017-06-11
Author: mi.schaarschmidt@gmail.com
File Name: tensorforce/tests/test_vpg_agent.py
Class Name: TestVPGAgent
Method Name: test_continuous
Project Name: reinforceio/tensorforce
Commit Name: 6f1d8c0760135d6288073e6a687e20bd544fac46
Time: 2017-06-11
Author: mi.schaarschmidt@gmail.com
File Name: tensorforce/tests/test_dqn_agent.py
Class Name: TestDQNAgent
Method Name: test_discrete
Project Name: reinforceio/tensorforce
Commit Name: ed233350fa0580747d9f9e247c9aa7933c1526e9
Time: 2017-06-11
Author: mi.schaarschmidt@gmail.com
File Name: tensorforce/tests/test_naf_agent.py
Class Name: TestNAFAgent
Method Name: test_naf_agent
Project Name: reinforceio/tensorforce
Commit Name: 6f1d8c0760135d6288073e6a687e20bd544fac46
Time: 2017-06-11
Author: mi.schaarschmidt@gmail.com
File Name: tensorforce/tests/test_vpg_agent.py
Class Name: TestVPGAgent
Method Name: test_discrete