Skip to main content

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,
#> )

Metadata

Release files for torch-lr-scheduler 0.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for torch-lr-scheduler 0.0.6
File Size Uploaded Provenance
torch-lr-scheduler-0.0.6.tar.gz 3.6 kB Without provenance Details

Release files / torch-lr-scheduler-0.0.6.tar.gz

Download URL torch-lr-scheduler-0.0.6.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
d7a1e9028b4e7935725d2b20e1e941825a036ee069a7ef6da9253dbfcb2314a0
BLAKE2b-256 checksum
How to use checksums
e96756f411a36a23d1da71ae8592f031d4ec86fd156c8b0f30181624e29fce82
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for torch-lr-scheduler 0.0.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page