Skip to main content

TSGD optimizer for Pytorch

Project description

TAdam

The Pytorch implementation of TSGD algorithm in:'Scaling transition from SGDM to plain SGD' https://arxiv.org/abs/2106.06749

Usage

from tsgd import TSGD

...

optimizer = TSGD(model.parameters(), iters=required, momentum=0.9, lr=1e-3, moment=3/8, up_lr=0.1, low_lr=0.005)

#iters(int, required): iterations
#	iters = (testSampleSize / batchSize) * epoch
#
#moment(float, optional): transition moment
#       moment = transition_iters / iters

#set default value: momentum=0.9, moment=3/8, up_lr=0.1, low_lr=0.005

The code will be uploaded as soon as possible

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

tsgd-0.0.2.tar.gz (2.7 kB view hashes)

Uploaded source

Built Distribution

tsgd-0.0.2-py3-none-any.whl (7.3 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page