From af8a93f2a4740f5cafa825e50a8d2226fb54f96f Mon Sep 17 00:00:00 2001 From: Eric Liang Date: Fri, 26 Mar 2021 11:45:17 -0700 Subject: [PATCH] Deflake some RLlib tests (#14947) * fix * update * 100 * flake --- rllib/BUILD | 6 +++--- rllib/tuned_examples/dqn/cartpole-dqn.yaml | 2 +- rllib/tuned_examples/es/cartpole-es.yaml | 2 +- .../sac/cartpole-continuous-pybullet-sac.yaml | 2 +- rllib/tuned_examples/sac/cartpole-sac.yaml | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/rllib/BUILD b/rllib/BUILD index 2ea616d42..65f678f65 100644 --- a/rllib/BUILD +++ b/rllib/BUILD @@ -1277,7 +1277,7 @@ py_test( py_test( name = "test_parameter_noise", tags = ["utils"], - size = "small", + size = "medium", srcs = ["utils/exploration/tests/test_parameter_noise.py"] ) @@ -1603,7 +1603,7 @@ py_test( tags = ["examples", "examples_A"], size = "medium", srcs = ["examples/attention_net.py"], - args = ["--as-test", "--stop-reward=80"] + args = ["--as-test", "--stop-reward=20"] ) py_test( @@ -1612,7 +1612,7 @@ py_test( tags = ["examples", "examples_A"], size = "medium", srcs = ["examples/attention_net.py"], - args = ["--as-test", "--stop-reward=80", "--framework torch"] + args = ["--as-test", "--stop-reward=20", "--framework torch"] ) py_test( diff --git a/rllib/tuned_examples/dqn/cartpole-dqn.yaml b/rllib/tuned_examples/dqn/cartpole-dqn.yaml index ba29b8c23..11e40cb34 100644 --- a/rllib/tuned_examples/dqn/cartpole-dqn.yaml +++ b/rllib/tuned_examples/dqn/cartpole-dqn.yaml @@ -2,7 +2,7 @@ cartpole-dqn: env: CartPole-v0 run: DQN stop: - episode_reward_mean: 150 + episode_reward_mean: 100 timesteps_total: 100000 config: # Works for both torch and tf. diff --git a/rllib/tuned_examples/es/cartpole-es.yaml b/rllib/tuned_examples/es/cartpole-es.yaml index dcafa00ba..3ee03105f 100644 --- a/rllib/tuned_examples/es/cartpole-es.yaml +++ b/rllib/tuned_examples/es/cartpole-es.yaml @@ -2,7 +2,7 @@ cartpole-es: env: CartPole-v0 run: ES stop: - episode_reward_mean: 150 + episode_reward_mean: 100 timesteps_total: 1000000 config: # Works for both torch and tf. diff --git a/rllib/tuned_examples/sac/cartpole-continuous-pybullet-sac.yaml b/rllib/tuned_examples/sac/cartpole-continuous-pybullet-sac.yaml index 7260e5cc6..8b5ff664a 100644 --- a/rllib/tuned_examples/sac/cartpole-continuous-pybullet-sac.yaml +++ b/rllib/tuned_examples/sac/cartpole-continuous-pybullet-sac.yaml @@ -2,7 +2,7 @@ cartpole-sac: env: CartPoleContinuousBulletEnv-v0 run: SAC stop: - episode_reward_mean: 80 + episode_reward_mean: 40 timesteps_total: 100000 config: # Works for both torch and tf. diff --git a/rllib/tuned_examples/sac/cartpole-sac.yaml b/rllib/tuned_examples/sac/cartpole-sac.yaml index 676dc8688..0cbb7d279 100644 --- a/rllib/tuned_examples/sac/cartpole-sac.yaml +++ b/rllib/tuned_examples/sac/cartpole-sac.yaml @@ -2,7 +2,7 @@ cartpole-sac: env: CartPole-v0 run: SAC stop: - episode_reward_mean: 150 + episode_reward_mean: 100 timesteps_total: 100000 config: # Works for both torch and tf.