mirror of
https://github.com/saymrwulf/stable-baselines3.git
synced 2026-11-17 08:56:08 +00:00
Change default architecture
This commit is contained in:
parent
03d2ab10f8
commit
f0f2f10d1e
1 changed files with 5 additions and 1 deletions
|
|
@ -16,8 +16,12 @@ class PPOPolicy(BasePolicy):
|
||||||
ortho_init=True, use_sde=False, log_std_init=0.0):
|
ortho_init=True, use_sde=False, log_std_init=0.0):
|
||||||
super(PPOPolicy, self).__init__(observation_space, action_space, device)
|
super(PPOPolicy, self).__init__(observation_space, action_space, device)
|
||||||
self.obs_dim = self.observation_space.shape[0]
|
self.obs_dim = self.observation_space.shape[0]
|
||||||
|
|
||||||
|
|
||||||
|
# Default network architecture, from stable-baselines
|
||||||
if net_arch is None:
|
if net_arch is None:
|
||||||
net_arch = [dict(pi=[64], vf=[64])]
|
net_arch = [dict(pi=[64, 64], vf=[64, 64])]
|
||||||
|
|
||||||
self.net_arch = net_arch
|
self.net_arch = net_arch
|
||||||
self.activation_fn = activation_fn
|
self.activation_fn = activation_fn
|
||||||
self.adam_epsilon = adam_epsilon
|
self.adam_epsilon = adam_epsilon
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue