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

Function test_train_freq_fail

tests/test_run.py:138–149  ·  view source on GitHub ↗
(train_freq)

Source from the content-addressed store, hash-verified

136
137@pytest.mark.parametrize("train_freq", ["4", ("1", "episode"), "non_sense", (1, "close")])
138def test_train_freq_fail(train_freq):
139 with pytest.raises(ValueError):
140 model = SAC(
141 "MlpPolicy",
142 "Pendulum-v1",
143 policy_kwargs=dict(net_arch=[64, 64], n_critics=1),
144 learning_starts=100,
145 buffer_size=10000,
146 verbose=1,
147 train_freq=train_freq,
148 )
149 model.learn(total_timesteps=250)
150
151
152@pytest.mark.parametrize("model_class", [SAC, TD3, DDPG, DQN])

Callers

nothing calls this directly

Calls 2

learnMethod · 0.95
SACClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…