-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #243 from choderalab/ref-training
Refactoring changes in the training routine
- Loading branch information
Showing
20 changed files
with
492 additions
and
240 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -190,3 +190,7 @@ lightning_logs/ | |
*.hdf5 | ||
*/tb_logs/* | ||
.vscode/settings.json | ||
logs/* | ||
cache/* | ||
*/logs/* | ||
*/cache/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
modelforge/tests/data/training_defaults/default_with_force.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
[training] | ||
number_of_epochs = 2 | ||
remove_self_energies = true | ||
batch_size = 128 | ||
lr = 1e-3 | ||
monitor_for_checkpoint = "val/per_molecule_energy/rmse" | ||
|
||
|
||
[training.experiment_logger] | ||
logger_name = "tensorboard" # this will set which logger to use | ||
|
||
# configuration for both loggers can be defined simultaneously, the logger_name variable defines which logger to use | ||
[training.experiment_logger.tensorboard_configuration] | ||
save_dir = "logs" | ||
|
||
[training.experiment_logger.wandb_configuration] | ||
save_dir = "logs" | ||
project = "training_potentials" | ||
group = "exp00" | ||
log_model = true | ||
job_type = "testing" | ||
tags = ["v_0.1.0"] | ||
notes = "testing training" | ||
|
||
[training.lr_scheduler] | ||
frequency = 1 | ||
mode = "min" | ||
factor = 0.1 | ||
patience = 10 | ||
cooldown = 5 | ||
min_lr = 1e-8 | ||
threshold = 0.1 | ||
threshold_mode = "abs" | ||
monitor = "val/per_molecule_energy/rmse" | ||
interval = "epoch" | ||
|
||
[training.loss_parameter] | ||
loss_property = ['per_molecule_energy', 'per_atom_force'] # use | ||
|
||
[training.loss_parameter.weight] | ||
per_molecule_energy = 0.999 #NOTE: reciprocal units | ||
per_atom_force = 0.001 | ||
|
||
|
||
[training.early_stopping] | ||
verbose = true | ||
monitor = "val/per_molecule_energy/rmse" | ||
min_delta = 0.001 | ||
patience = 50 | ||
|
||
[training.splitting_strategy] | ||
name = "random_record_splitting_strategy" | ||
data_split = [0.8, 0.1, 0.1] | ||
seed = 42 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.