added smoke tests of ddpg (#734)

This commit is contained in:
pzhokhov
2018-11-26 17:57:25 -08:00
committed by GitHub
parent 97e039127f
commit f3a5abaeeb
2 changed files with 22 additions and 3 deletions

View 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')