added smoke tests of ddpg (#734)
This commit is contained in:
17
baselines/ddpg/test_smoke.py
Normal file
17
baselines/ddpg/test_smoke.py
Normal file
@@ -0,0 +1,17 @@
|
||||
from baselines.run import main as M
|
||||
|
||||
def _run(argstr):
|
||||
M(('--alg=ddpg --env=Pendulum-v0 --num_timesteps=0 ' + argstr).split(' '))
|
||||
|
||||
def test_popart():
|
||||
_run('--normalize_returns=True --popart=True')
|
||||
|
||||
def test_noise_normal():
|
||||
_run('--noise_type=normal_0.1')
|
||||
|
||||
def test_noise_ou():
|
||||
_run('--noise_type=ou_0.1')
|
||||
|
||||
def test_noise_adaptive():
|
||||
_run('--noise_type=adaptive-param_0.2,normal_0.1')
|
||||
|
Reference in New Issue
Block a user