Skip to content

Commit

Permalink
🚧 [NeuralModel] Hyperparametes tweaking
Browse files Browse the repository at this point in the history
  • Loading branch information
Baccega committed Nov 22, 2023
1 parent 81afc0b commit 40e8f5c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
4 changes: 2 additions & 2 deletions constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@
"PCA_INPUT_SIZE": 8 + (2 * 10), # PCA_ORTHOGONAL_BASES + (2 * H)
"GAUSSIAN_MATRIX_FILE_PATH": "data/gaussian_matrix.npz",
# --- NEURAL MODEL CONSTANTS
"NEURAL_BATCH_SIZE": 2048 * 1,
"NEURAL_BATCH_SIZE": 256 * 4,
"NEURAL_LEARNING_RATE": 0.01,
"NEURAL_N_EPOCHS": 30,
"NEURAL_N_EPOCHS": 50,
"NEURAL_H": 12,
"NEURAL_SIGMA_XY": 3.0,
"NEURAL_SIGMA_UV": 0.6,
Expand Down
8 changes: 2 additions & 6 deletions neural_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,9 @@ def __init__(self, gaussian_matrix_xy, gaussian_matrix_uv):
nn.ReLU(),
nn.Linear(128, 64),
nn.ReLU(),
nn.Linear(64, 32),
nn.Linear(64, 64),
nn.ReLU(),
nn.Linear(32, 16),
nn.ReLU(),
nn.Linear(16, 16),
nn.ReLU(),
nn.Linear(16, 1),
nn.Linear(64, 1),
)

def forward(self, x):
Expand Down

0 comments on commit 40e8f5c

Please sign in to comment.