57544b1ff9f97d4da9f64d25c8ea5a3d8d247ffc,rllib/examples/nested_action_spaces.py,,,#,12

Before Change


    trainer = ppo.PPOTrainer(config=config)
    for _ in range(100):
        results = trainer.train()
        print(results)
        if results["episode_reward_mean"] > args.stop:
            sys.exit(0)  // Learnt, exit gracefully.
    sys.exit(1)  // Done, but did not learn, exit with error.

After Change


        "timesteps_total": args.stop_timesteps,
    }

    results = tune.run(args.run, config=config, stop=stop)

    if args.as_test:
        check_learning_achieved(results, args.stop_reward)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: ray-project/ray
Commit Name: 57544b1ff9f97d4da9f64d25c8ea5a3d8d247ffc
Time: 2020-05-11
Author: sven@anyscale.io
File Name: rllib/examples/nested_action_spaces.py
Class Name:
Method Name:


Project Name: NervanaSystems/nlp-architect
Commit Name: de2fda821ec02eee57449de9562f80f5993e65ce
Time: 2018-11-25
Author: peteriz@users.noreply.github.com
File Name: nlp_architect/cmd.py
Class Name: StyleCommand
Method Name: run_pylint


Project Name: NervanaSystems/nlp-architect
Commit Name: de2fda821ec02eee57449de9562f80f5993e65ce
Time: 2018-11-25
Author: peteriz@users.noreply.github.com
File Name: nlp_architect/cmd.py
Class Name: StyleCommand
Method Name: run_flake


Project Name: ray-project/ray
Commit Name: d9f1874e3489edc915228dcfdae64d5294034464
Time: 2020-10-27
Author: sven@anyscale.io
File Name: rllib/tests/test_rollout_worker.py
Class Name: TestRolloutWorker
Method Name: test_global_vars_update