Skip to main content

PyTorch Optimizer Lr Scheduler

Project description

torch-lr-scheduler Build Status codecov PyPI version

PyTorch Optimizer Lr Scheduler.

Installation

Need Python 3.6+.

pip install torch-lr-scheduler

Usage

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
    }]
})

print(lr_scheduler)
#> 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.

Source Distribution

torch-lr-scheduler-0.0.6.tar.gz (3.6 kB view details)

Uploaded Source

File details

Details for the file torch-lr-scheduler-0.0.6.tar.gz.

File metadata

  • Download URL: torch-lr-scheduler-0.0.6.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.7

File hashes

Hashes for torch-lr-scheduler-0.0.6.tar.gz
Algorithm Hash digest
SHA256 d7a1e9028b4e7935725d2b20e1e941825a036ee069a7ef6da9253dbfcb2314a0
MD5 276677f6f7f9bc7508402ec8326f992c
BLAKE2b-256 e96756f411a36a23d1da71ae8592f031d4ec86fd156c8b0f30181624e29fce82

See more details on using hashes here.

Supported by

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