Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AEV dimension from aev_computer #442

Merged
merged 1 commit into from
Apr 2, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions examples/nnp_training.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,10 @@
#
###############################################################################
# Now let's define atomic neural networks.
aev_dim = aev_computer.aev_length

H_network = torch.nn.Sequential(
torch.nn.Linear(384, 160),
torch.nn.Linear(aev_dim, 160),
torch.nn.CELU(0.1),
torch.nn.Linear(160, 128),
torch.nn.CELU(0.1),
Expand All @@ -104,7 +105,7 @@
)

C_network = torch.nn.Sequential(
torch.nn.Linear(384, 144),
torch.nn.Linear(aev_dim, 144),
torch.nn.CELU(0.1),
torch.nn.Linear(144, 112),
torch.nn.CELU(0.1),
Expand All @@ -114,7 +115,7 @@
)

N_network = torch.nn.Sequential(
torch.nn.Linear(384, 128),
torch.nn.Linear(aev_dim, 128),
torch.nn.CELU(0.1),
torch.nn.Linear(128, 112),
torch.nn.CELU(0.1),
Expand All @@ -124,7 +125,7 @@
)

O_network = torch.nn.Sequential(
torch.nn.Linear(384, 128),
torch.nn.Linear(aev_dim, 128),
torch.nn.CELU(0.1),
torch.nn.Linear(128, 112),
torch.nn.CELU(0.1),
Expand Down
9 changes: 5 additions & 4 deletions examples/nnp_training_force.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,10 @@

###############################################################################
# The code to define networks, optimizers, are mostly the same
aev_dim = aev_computer.aev_length

H_network = torch.nn.Sequential(
torch.nn.Linear(384, 160),
torch.nn.Linear(aev_dim, 160),
torch.nn.CELU(0.1),
torch.nn.Linear(160, 128),
torch.nn.CELU(0.1),
Expand All @@ -69,7 +70,7 @@
)

C_network = torch.nn.Sequential(
torch.nn.Linear(384, 144),
torch.nn.Linear(aev_dim, 144),
torch.nn.CELU(0.1),
torch.nn.Linear(144, 112),
torch.nn.CELU(0.1),
Expand All @@ -79,7 +80,7 @@
)

N_network = torch.nn.Sequential(
torch.nn.Linear(384, 128),
torch.nn.Linear(aev_dim, 128),
torch.nn.CELU(0.1),
torch.nn.Linear(128, 112),
torch.nn.CELU(0.1),
Expand All @@ -89,7 +90,7 @@
)

O_network = torch.nn.Sequential(
torch.nn.Linear(384, 128),
torch.nn.Linear(aev_dim, 128),
torch.nn.CELU(0.1),
torch.nn.Linear(128, 112),
torch.nn.CELU(0.1),
Expand Down