Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

PyTorch Optimizer Lr Scheduler

Project description

torch-lr-scheduler Build Status codecov PyPI version

PyTorch Optimizer Lr Scheduler.


Need Python 3.6+.

pip install torch-lr-scheduler


import torch_lr_scheduler

lr_scheduler = torch_lr_scheduler.factory(config={
    'line_chain': [{
        # warm up to 0.8
        'mode': 'linear',
        'ratio': 0.01,
        'start': 0.2,
        'target': 0.8
    }, {
        # cosine to 0.0
        'mode': 'cosine',
        'ratio': 1.0,
        'target': 0.0

#> LrScheduler (learning_rate_scale: 1.0) with LineChain (
#>     1.0%, linear from 0.2 to 0.8,
#>   100.0%, cosine from 0.8 to 0.0,
#> )

Project details

Download files

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

Files for torch-lr-scheduler, version 0.0.6
Filename, size File type Python version Upload date Hashes
Filename, size torch-lr-scheduler-0.0.6.tar.gz (3.6 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page