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

Function test_sac

tests/test_run.py:76–87  ·  view source on GitHub ↗
(ent_coef)

Source from the content-addressed store, hash-verified

74
75@pytest.mark.parametrize("ent_coef", ["auto", 0.01, "auto_0.01"])
76def test_sac(ent_coef):
77 model = SAC(
78 "MlpPolicy",
79 "Pendulum-v1",
80 policy_kwargs=dict(net_arch=[64, 64]),
81 learning_starts=100,
82 verbose=1,
83 buffer_size=250,
84 ent_coef=ent_coef,
85 action_noise=NormalActionNoise(np.zeros(1), np.zeros(1)),
86 )
87 model.learn(total_timesteps=200)
88
89
90@pytest.mark.parametrize("n_critics", [1, 3])

Callers

nothing calls this directly

Calls 3

learnMethod · 0.95
SACClass · 0.90
NormalActionNoiseClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…