fixes to catch changes in gym
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
import tensorflow as tf
|
import tensorflow as tf
|
||||||
import numpy as np
|
import numpy as np
|
||||||
from gym.spaces import np_random
|
|
||||||
from baselines.common.vec_env.dummy_vec_env import DummyVecEnv
|
from baselines.common.vec_env.dummy_vec_env import DummyVecEnv
|
||||||
|
|
||||||
N_TRIALS = 10000
|
N_TRIALS = 10000
|
||||||
@@ -8,8 +7,6 @@ N_EPISODES = 100
|
|||||||
|
|
||||||
def simple_test(env_fn, learn_fn, min_reward_fraction, n_trials=N_TRIALS):
|
def simple_test(env_fn, learn_fn, min_reward_fraction, n_trials=N_TRIALS):
|
||||||
np.random.seed(0)
|
np.random.seed(0)
|
||||||
np_random.seed(0)
|
|
||||||
|
|
||||||
env = DummyVecEnv([env_fn])
|
env = DummyVecEnv([env_fn])
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user