Skip to content
Snippets Groups Projects
Commit fae2983d authored by Frisinghelli Daniel's avatar Frisinghelli Daniel
Browse files

Set cyclic policy for momentum.

parent 711f04c3
No related branches found
No related tags found
No related merge requests found
......@@ -143,7 +143,9 @@ if OPTIM == torch.optim.SGD:
LR_SCHEDULER = None
# LR_SCHEDULER = torch.optim.lr_scheduler.CyclicLR
LR_SCHEDULER_PARAMS = {'base_lr': BASE_LR, 'max_lr': MAX_LR,
'mode': 'triangular', 'step_size_up': 400}
'mode': 'triangular', 'step_size_up': 400,
'cycle_momentum': False, 'base_momentum': 0.9,
'max_momentum': 0.99}
# whether to randomly shuffle time steps or to conserve time series for model
# training
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment