Class AdamW
java.lang.Object
io.github.kirstenali.deepj.optimisers.AdamW
- All Implemented Interfaces:
ParameterOptimizer
AdamW optimizer with per-parameter state.
State is keyed by Parameter identity, and updates are applied in-place.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
AdamW
public AdamW(float lr, float beta1, float beta2, float eps, float weightDecay)
-
-
Method Details
-
defaultAdamW
-
lr
public float lr()Current learning rate. -
setLr
public void setLr(float lr) Update the learning rate (e.g. from a warmup/cosine schedule). Per-parameter moment state (m,v) is preserved. -
step
Description copied from interface:ParameterOptimizerUpdate the provided parameters (one optimizer step).- Specified by:
stepin interfaceParameterOptimizer
-