Skip to content

Commit

Permalink
update example defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
lubbersnick committed Jan 13, 2025
1 parent 2150301 commit ff895d2
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions examples/ani1x_training.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,11 +233,15 @@ def main(args):

hierarchical_energy_initialization(henergy, database, trainable_after=False)

patience = args.patience
if args.use_ccx_subset:
patience *= 4

setup_params = setup_experiment(training_modules,
device=args.gpu,
batch_size=args.batch_size,
init_lr=args.init_lr,
patience=args.patience,
patience=patience,
max_epochs=args.max_epochs,
stopping_key=args.stopping_key,
)
Expand Down Expand Up @@ -273,7 +277,7 @@ def main(args):
parser.add_argument("--qm_method", type=str, default='wb97x')
parser.add_argument("--basis_set", type=str, default='dz')

parser.add_argument("--force_training", action='store_true', default=False)
parser.add_argument("--force_training", action='store_true', default=True)

parser.add_argument("--batch_size",type=int, default=256)
parser.add_argument("--init_lr",type=float, default=1e-3)
Expand All @@ -282,8 +286,9 @@ def main(args):
parser.add_argument("--stopping_key",type=str, default="T-RMSE")

parser.add_argument("--use_ccx_subset",type=bool, default=False,
help="Train only to configurations for the ANI-1ccx dataset."
" Note that this will still use the energies using the `qm_method` argument.")
help="Train only to configurations from the ANI-1ccx subset."
" Note that this will still use the energies using the `qm_method` argument."
" *Note!* This argument will multiply the patience by a factor of 4.")


parser.add_argument("--noprogress", action='store_true', default=False, help='suppress progress bars')
Expand Down

0 comments on commit ff895d2

Please sign in to comment.