414041c6dd3e2361a3cc9de1c646dd9114004fe8,rllib/utils/exploration/tests/test_curiosity.py,TestCuriosity,test_curiosity_on_large_frozen_lake,#TestCuriosity#,110

Before Change


                result = trainer.train()
                print(result)
                if result["episode_reward_mean"] >= 0.001:
                    print("Learnt something!")
                    learnt = True
                    break
            trainer.stop()
            self.assertTrue(learnt)

After Change


            config["exploration_config"] = {
                "type": "StochasticSampling",
            }
            trainer = ppo.PPOTrainer(config=config)
            rewards_wo = 0.0
            for _ in range(num_iterations):
                result = trainer.train()
                rewards_wo += result["episode_reward_mean"]
                print(result)
            trainer.stop()
            self.assertTrue(rewards_wo == 0.0)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: ray-project/ray
Commit Name: 414041c6dd3e2361a3cc9de1c646dd9114004fe8
Time: 2020-10-15
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: hanxiao/bert-as-service
Commit Name: aee5cf66f2154ef70fd812b369271f05e4b7c921
Time: 2018-11-27
Author: hanhxiao@tencent.com
File Name: example5.py
Class Name:
Method Name:


Project Name: ClimbsRocks/auto_ml
Commit Name: 2639d96db0e2811bc7744d4d771b1b93bb6169f8
Time: 2016-11-06
Author: climbsbytes@gmail.com
File Name: auto_ml/predictor.py
Class Name: Predictor
Method Name: train_ensemble