bb403781182c6e31d3bf5de16f42b0cb0d8421f7,baselines/ddpg/main.py,,parse_args,#,82

Before Change


    parser.add_argument("--nb-rollout-steps", type=int, default=100)  // per epoch cycle and MPI worker
    parser.add_argument("--noise-type", type=str, default="adaptive-param_0.2")  // choices are adaptive-param_xx, ou_xx, normal_xx, none
    boolean_flag(parser, "evaluation", default=False)
    return vars(parser.parse_args())


if __name__ == "__main__":
    args = parse_args()

After Change


    if args.num_timesteps is not None:
        assert(args.num_timesteps == args.nb_epochs * args.nb_epoch_cycles * args.nb_rollout_steps)
    dict_args = vars(args)
    del dict_args["num_timesteps"]
    return dict_args


if __name__ == "__main__":
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: openai/baselines
Commit Name: bb403781182c6e31d3bf5de16f42b0cb0d8421f7
Time: 2017-10-25
Author: joschu@openai.com
File Name: baselines/ddpg/main.py
Class Name:
Method Name: parse_args


Project Name: kkroening/ffmpeg-python
Commit Name: f5f7ee20730f2beca5db80933f11d880e1f22a0c
Time: 2018-01-07
Author: karlk@kralnet.us
File Name: examples/split_silence.py
Class Name:
Method Name:


Project Name: dickreuter/Poker
Commit Name: 326330df0cadc4adcecfa9b8c3a83f465f977fb4
Time: 2016-09-09
Author: dickreuter@yahoo.com
File Name: mongo_manager.py
Class Name: Logging
Method Name: write_log_file