244aafdcf89ae814975c8c4e3faf0bd4995c7878,rllib/utils/exploration/tests/test_curiosity.py,TestCuriosity,test_curiosity_on_large_frozen_lake,#TestCuriosity#,88
Before Change
trainer.stop()
self.assertTrue(rewards_wo == 0.0)
self.assertGreater(rewards_w, 0.1)
if __name__ == "__main__":
import pytest
After Change
for _ in range(num_iterations):
result = trainer.train()
print(result)
if result["episode_reward_mean"] >= 0.001:
print("Learnt something!")
learnt = True
break
trainer.stop()
self.assertTrue(learnt)
// // W/o Curiosity. Expect to learn nothing.
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: ray-project/ray
Commit Name: 244aafdcf89ae814975c8c4e3faf0bd4995c7878
Time: 2020-09-05
Author: sven@anyscale.io
File Name: rllib/utils/exploration/tests/test_curiosity.py
Class Name: TestCuriosity
Method Name: test_curiosity_on_large_frozen_lake
Project Name: microsoft/nni
Commit Name: 52b93d0cabc11423428ea748972841c27bc068ee
Time: 2019-11-04
Author: 38930155+chicm-ms@users.noreply.github.com
File Name: test/config_test.py
Class Name:
Method Name: run_test
Project Name: keras-team/keras
Commit Name: 85f0448feec3843b587c8674a660462d8b25e1e2
Time: 2016-04-19
Author: francois.chollet@gmail.com
File Name: keras/engine/topology.py
Class Name:
Method Name: merge