Exemple #1
0
def test(path):
    args = [
        'UnityRemote-v0',
        path,
    ]
    make_env_def()
    run_test(environment_definitions, args)
def test(path):
    args = ['UnityRemote-v0', path, '--n_workers=2']
    environment_definitions['state_shape'] = (7, )
    environment_definitions['action_shape'] = (5, )
    environment_definitions['actions'] = [('fx', 0.1), ('fx', -0.1),
                                          ('fz', 0.1), ('fz', -0.1),
                                          ('noop', 0.0)]
    environment_definitions['action_meaning'] = [
        'tx_right', 'tx_left', 'tz_toward', 'tz_backward', 'NOOP'
    ]
    environment_definitions['state_wrapper'] = state_wrapper
    run_test(environment_definitions, args)
Exemple #3
0
def test(path):
    args = ['UnityRemote-v0', path, '--preprocessing=external' '--n_workers=4']
    make_env_def()
    run_test(environment_definitions, args)