Updated LeakyReLU to Tanh in hopes of improving performance
This commit is contained in:
parent
d9b7ee30be
commit
ef78027ba7
1 changed files with 10 additions and 10 deletions
|
@ -59,11 +59,11 @@ class ActorNetwork(nn.Module):
|
|||
|
||||
self.actor = nn.Sequential(
|
||||
nn.Linear(input_dim, fc1_dims),
|
||||
nn.LeakyReLU(),
|
||||
nn.Tanh(),
|
||||
nn.Linear(fc1_dims, fc2_dims),
|
||||
nn.LeakyReLU(),
|
||||
nn.Tanh(),
|
||||
nn.Linear(fc1_dims, fc2_dims),
|
||||
nn.LeakyReLU(),
|
||||
nn.Tanh(),
|
||||
nn.Linear(fc2_dims, output_dim),
|
||||
nn.Softmax(dim=-1)
|
||||
)
|
||||
|
@ -99,19 +99,19 @@ class CriticNetwork(nn.Module):
|
|||
|
||||
self.critic = nn.Sequential(
|
||||
nn.Linear(input_dims, fc1_dims),
|
||||
nn.LeakyReLU(),
|
||||
nn.Tanh(),
|
||||
nn.Linear(fc1_dims, fc2_dims),
|
||||
nn.LeakyReLU(),
|
||||
nn.Tanh(),
|
||||
nn.Linear(fc1_dims, fc2_dims),
|
||||
nn.LeakyReLU(),
|
||||
nn.Tanh(),
|
||||
nn.Linear(fc1_dims, fc2_dims),
|
||||
nn.LeakyReLU(),
|
||||
nn.Tanh(),
|
||||
nn.Linear(fc1_dims, fc2_dims),
|
||||
nn.LeakyReLU(),
|
||||
nn.Tanh(),
|
||||
nn.Linear(fc1_dims, fc2_dims),
|
||||
nn.LeakyReLU(),
|
||||
nn.Tanh(),
|
||||
nn.Linear(fc1_dims, fc2_dims),
|
||||
nn.LeakyReLU(),
|
||||
nn.Tanh(),
|
||||
nn.Linear(fc2_dims, 1)
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue