Skip to main content

t-momentum

Project description

t-momentum

A Stochastic Gradient momentum based on a Student-t distribution Exponential Moving Average

Official repository for the t-momentum algorithm.

Journal Paper (Accepted for publication in the IEEE Transactions on Neural Networks and Learning Systems journal): Robust Stochastic Gradient Descent With Student-t Distribution Based First-Order Momentum

Arxiv Preprint (early version. Focuses only on the integration of the t-momentum to Adam. Corresponding repository here): TAdam: A Robust Stochastic Gradient Optimizer

How to use:

  1. Install
  • install with pip:
pip install tmomentum
  • or clone and install:
git clone https://github.com/Mahoumaru/t-momentum.git
cd t-momentum
pip install -e .
  1. Import and use each optimizer just like you would use an official pytorch optimizer (adjust hyperparameters such as learning rate, k_dof, betas, weight_decay, amsgrad, etc.)
from tmomentum.optimizers import TAdam
from tmomentum.optimizers import TYogi

optimizer1 = TAdam(net1.parameters())
optimizer2 = TYogi(net2.parameters())

How to cite:

If you employ the t-momentum based optimizers in your Machine Learning application, please cite us using the following:

Plain Text
W. E. L. Ilboudo, T. Kobayashi and K. Sugimoto,
"Robust Stochastic Gradient Descent With Student-t Distribution Based First-Order Momentum,"
in IEEE Transactions on Neural Networks and Learning Systems, doi: 10.1109/TNNLS.2020.3041755.
Bibtex
@ARTICLE{9296551,
  author={W. E. L. {Ilboudo} and T. {Kobayashi} and K. {Sugimoto}},
  journal={IEEE Transactions on Neural Networks and Learning Systems},
  title={Robust Stochastic Gradient Descent With Student-t Distribution Based First-Order Momentum},
  year={2020},
  volume={},
  number={},
  pages={1-14},
  doi={10.1109/TNNLS.2020.3041755}}

Note

This repository is implemented in pytorch. A tensorflow implementation of the t-momentum integrated to various optimizers would be really appreciated. Don't hesitate to PR.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tmomentum-1.0.1.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tmomentum-1.0.1-py3-none-any.whl (22.9 kB view details)

Uploaded Python 3

File details

Details for the file tmomentum-1.0.1.tar.gz.

File metadata

  • Download URL: tmomentum-1.0.1.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.23.0 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.5

File hashes

Hashes for tmomentum-1.0.1.tar.gz
Algorithm Hash digest
SHA256 dc33447d77a9081d6e87afb18075bd2144ba05e3ff8b48cfe7ce828cf8815495
MD5 d763d88f56749d33a95f7eaba1d36c79
BLAKE2b-256 a76db42e801c98bde09728899fe0c2f746be2a1c36cd1589930451fdbb756373

See more details on using hashes here.

File details

Details for the file tmomentum-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: tmomentum-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 22.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.23.0 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.5

File hashes

Hashes for tmomentum-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 98653af3dc3a345d01874eb0d3118d95fd674a28d692343f2973bf6c13e5d444
MD5 b7efdc54d1cafdee8a9cc2270c2bfe37
BLAKE2b-256 9317672584f3e65ef28cece0085957f4359c9034e080162e5d458ce1338562b1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page