Ejemplo n.º 1
0
    parser.add_argument('--no_plots', action='store_true')
    parser.add_argument('--do_long', action='store_true')
    parser.add_argument('--_divisor', default=1., type=float)

    args = parser.parse_args()
    dirname = args.dirname
    base_num_rows = args.base_num_rows
    num_iters = args.num_iters
    do_plots = not args.no_plots
    do_long = args.do_long
    _divisor = args._divisor


    # create configs
    arg_list_to_config = partial(eu.arg_list_to_config,
            geweke_utils.generate_parser(),
            arbitrate_args=geweke_utils.arbitrate_args)
    args_list = generate_args_list(base_num_rows, num_iters, do_long, _divisor)
    config_list = map(arg_list_to_config, args_list)


    # do experiments
    er = ExperimentRunner(geweke_utils.run_geweke, storage_type='fs',
            dirname_prefix=dirname,
            bucket_str='experiment_runner')
    er.do_experiments(config_list)
    # push to s3
    propagate_to_s3(er)


    if do_plots:
Ejemplo n.º 2
0
    parser.add_argument('--num_iters', default=2000, type=int)
    parser.add_argument('--no_plots', action='store_true')
    parser.add_argument('--do_long', action='store_true')
    parser.add_argument('--_divisor', default=1., type=float)

    args = parser.parse_args()
    dirname = args.dirname
    base_num_rows = args.base_num_rows
    num_iters = args.num_iters
    do_plots = not args.no_plots
    do_long = args.do_long
    _divisor = args._divisor

    # create configs
    arg_list_to_config = partial(eu.arg_list_to_config,
                                 geweke_utils.generate_parser(),
                                 arbitrate_args=geweke_utils.arbitrate_args)
    args_list = generate_args_list(base_num_rows, num_iters, do_long, _divisor)
    config_list = map(arg_list_to_config, args_list)

    # do experiments
    er = ExperimentRunner(geweke_utils.run_geweke,
                          storage_type='fs',
                          dirname_prefix=dirname,
                          bucket_str='experiment_runner')
    er.do_experiments(config_list)
    # push to s3
    propagate_to_s3(er)

    if do_plots:
        for id in er.frame.index: