Observed since 20 Oct, 19:03 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
An enhanced Adam optimizer with overshoot and stagnation handling.
A PyTorch implementation of AdamZ, an enhanced variant of the widely-used Adam optimizer, that is designed to improve upon its predecessor by offering more efficient convergence and potentially better generalization capabilities across various neural network training tasks.
Instantiate the AdamZ optimizer similarly to other standard optimizers, ensuring you configure the hyperparameters to suit your specific task. Note that the performance of AdamZ is highly sensitive to these parameters, and default settings may not be optimal for all applications.
from adamz import AdamZ
import torch
model = torch.nn.Linear(10, 1)
optimizer = AdamZ(
model.parameters(),
lr=learning_rate,
overshoot_factor=0.5,
stagnation_factor=1.2,
stagnation_threshold=0.2,
patience=100,
stagnation_period=10
)
# Training loop
for input, target in dataset:
optimizer.zero_grad()
loss = loss_fn(model(input), target)
loss.backward()
optimizer.step()
If you find this code helpful, please cite our paper in the following format.
@misc{zaznov2024adamzenhancedoptimisationmethod,
title={AdamZ: An Enhanced Optimisation Method for Neural Network Training},
author={Ilia Zaznov and Atta Badii and Alfonso Dufour and Julian Kunkel},
year={2024},
eprint={2411.15375},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/2411.15375},
}
Contributions are welcome! Please feel free to submit a pull request or open an issue for suggestions and improvements.
This project is licensed under the MIT License. See the LICENSE file for details.
For any questions, please contact i.zaznov@pgr.reading.ac.uk or open an issue on GitHub.
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.1.0 | 27 Nov 2024 | 0 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 19:03 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:f8206b30c18e1eec0b823b18f07a7d696846c16e34990a506b754a637173d056