57544b1ff9f97d4da9f64d25c8ea5a3d8d247ffc,rllib/examples/hierarchical_training.py,,,#,35

Before Change


        )

    // Error if stop-reward not reached.
    if results.trials[0].last_result["episode_reward_mean"] < \
            args.stop_reward:
        raise ValueError("`stop-reward` of {} not reached!".format(
            args.stop_reward))
    print("ok")

After Change


parser.add_argument("--flat", action="store_true")
parser.add_argument("--as-test", action="store_true")
parser.add_argument("--torch", action="store_true")
parser.add_argument("--stop-iters", type=int, default=200)
parser.add_argument("--stop-reward", type=float, default=0.0)
parser.add_argument("--stop-timesteps", type=int, default=100000)

logger = logging.getLogger(__name__)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


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:


Project Name: polyaxon/polyaxon
Commit Name: fca1cf9adf43200a031325656c94a960bcd2f183
Time: 2019-06-26
Author: mouradmourafiq@gmail.com
File Name: polyaxon/init/init/auth.py
Class Name:
Method Name:


Project Name: osmr/imgclsmob
Commit Name: d9096b88cb4a53c8a03cd7e021d48eb300ea364e
Time: 2019-05-04
Author: osemery@gmail.com
File Name: gluon/imagenet1k_utils.py
Class Name:
Method Name: add_dataset_parser_arguments