57544b1ff9f97d4da9f64d25c8ea5a3d8d247ffc,rllib/examples/nested_action_spaces.py,,,#,12
Before Change
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
if args.as_test:
check_learning_achieved(results, args.stop_reward)
ray.shutdown()
In pattern: SUPERPATTERN
Frequency: 3
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: facebookresearch/ParlAI
Commit Name: 26bd63e03ade253ebba560e9d08ba861eb77e553
Time: 2017-12-15
Author: ahm@fb.com
File Name: examples/train_model.py
Class Name: TrainLoop
Method Name: train
Project Name: ray-project/ray
Commit Name: 57544b1ff9f97d4da9f64d25c8ea5a3d8d247ffc
Time: 2020-05-11
Author: sven@anyscale.io
File Name: rllib/examples/hierarchical_training.py
Class Name:
Method Name: