MCPcopy
hub / github.com/DLR-RM/stable-baselines3 / test_subclassed_space_env

Function test_subclassed_space_env

tests/test_predict.py:113–118  ·  view source on GitHub ↗
(model_class)

Source from the content-addressed store, hash-verified

111
112@pytest.mark.parametrize("model_class", [A2C, SAC, PPO, TD3])
113def test_subclassed_space_env(model_class):
114 env = CustomSubClassedSpaceEnv()
115 model = model_class("MlpPolicy", env, policy_kwargs=dict(net_arch=[32]))
116 model.learn(300)
117 obs, _ = env.reset()
118 env.step(model.predict(obs))
119
120
121def test_mixing_gym_vecenv_api():

Callers

nothing calls this directly

Calls 5

resetMethod · 0.95
stepMethod · 0.95
learnMethod · 0.45
predictMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…