244aafdcf89ae814975c8c4e3faf0bd4995c7878,rllib/utils/exploration/tests/test_curiosity.py,TestCuriosity,test_curiosity_on_large_frozen_lake,#TestCuriosity#,88

Before Change


        config["horizon"] = 40
        config["num_workers"] = 0  // local only
        config["train_batch_size"] = 512
        config["num_sgd_iter"] = 10

        num_iterations = 30
        for _ in framework_iterator(config, frameworks="torch"):
            // W/ Curiosity.

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.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

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: maciejkula/spotlight
Commit Name: 9cf5570c74ef20193f8f8dedba55dec618e7e8c6
Time: 2017-08-21
Author: maciej.kula@gmail.com
File Name: examples/bloom_embeddings/example.py
Class Name:
Method Name: run


Project Name: AlexEMG/DeepLabCut
Commit Name: 9a129d4946323799cf4328ec567f237ecde8c24d
Time: 2019-11-12
Author: amathis@fas.harvard.edu
File Name: deeplabcut/pose_estimation_tensorflow/nnet/pose_net.py
Class Name: PoseNet
Method Name: prediction_layers