Beispiel #1
0
def main():
    full_experiment_name = 'sawyer'
    full_experiment_name += '-' + timestamp()
    args = parse_args()
    saved_file = args.file
    run_sql_experiment(run_experiment,
                       mode='local',
                       variant=dict(file=saved_file),
                       exp_prefix='sawyer' + '/' + 'reuse' + '/' + timestamp(),
                       exp_name=full_experiment_name,
                       n_parallel=1,
                       seed=1,
                       terminate_machine=True,
                       log_dir=None,
                       snapshot_mode='gap',
                       snapshot_gap=100,
                       sync_s3_pkl=True)
    return
def main():
    full_experiment_name = 'swimmer'
    full_experiment_name += '-' + timestamp()
    args = parse_args()
    saved_file = args.file
    run_sql_experiment(
        run_experiment,
        mode='local',
        variant=dict(file=saved_file),
        exp_prefix='swimmer' + '/' + 'reuse' + '/' + timestamp(),
        exp_name=full_experiment_name,
        n_parallel=1,
        seed=1,
        terminate_machine=True,
        log_dir=None,
        snapshot_mode='gap',
        snapshot_gap=100,
        sync_s3_pkl=True)
    return
Beispiel #3
0
def launch_experiments(variant_generator, args):
    variants = variant_generator.variants()
    for i, variant in enumerate(variants):
        print('Launching {} experiments.'.format(len(variants)))
        full_experiment_name = variant['prefix']
        full_experiment_name += '-' + args.exp_name + '-' + str(i).zfill(2)

        run_sql_experiment(run_experiment,
                           mode=args.mode,
                           variant=variant,
                           exp_prefix=variant['prefix'] + '/' + args.exp_name,
                           exp_name=full_experiment_name,
                           n_parallel=1,
                           seed=variant['seed'],
                           terminate_machine=True,
                           log_dir=args.log_dir,
                           snapshot_mode=variant['snapshot_mode'],
                           snapshot_gap=variant['snapshot_gap'],
                           sync_s3_pkl=True)
def launch_experiments(variant_generator, args):
    variants = variant_generator.variants()
    for i, variant in enumerate(variants):
        print('Launching {} experiments.'.format(len(variants)))
        full_experiment_name = variant['prefix']
        full_experiment_name += '-' + args.exp_name + '-' + str(i).zfill(2)

        run_sql_experiment(
            run_experiment,
            mode=args.mode,
            variant=variant,
            exp_prefix=variant['prefix'] + '/' + args.exp_name,
            exp_name=full_experiment_name,
            n_parallel=1,
            seed=variant['seed'],
            terminate_machine=True,
            log_dir=args.log_dir,
            snapshot_mode=variant['snapshot_mode'],
            snapshot_gap=variant['snapshot_gap'],
            sync_s3_pkl=True)
Beispiel #5
0
def launch_experiments(variant_generator, args):
    variants = variant_generator.variants()
    for i, variant in enumerate(variants):
        print('Launching {} experiments.'.format(len(variants)))
        full_experiment_name = variant['prefix']
        full_experiment_name += '-' + args.exp_name + '-' + str(i).zfill(2)

        run_sql_experiment(
            run_experiment,
            mode=args.mode,
            variant=variant,
            exp_prefix=variant['prefix'] + '/' + args.exp_name,
            exp_name=full_experiment_name,
            n_parallel=1,
            seed=variant['seed'],
            terminate_machine=True,
            log_dir=args.log_dir,
            snapshot_mode=variant['snapshot_mode'],
            snapshot_gap=variant['snapshot_gap'],
            sync_s3_pkl=True,
            python_command=
            '/home/desteban/miniconda3/envs/softqlearning_haarnoja/bin/python',
        )