Skip to main content

LR Schedulers with C++ extensions

Implements some LR scheduling functions to decay or ramp values across timestamps.

Install

Install with: pip install scheduling_utils

Usage

Each scheduler is available with full python code or c++ code (ctypes is used for binding) wrapped into python classes.
To initialize and use for example a cosine scheduler, do the following:

# import the c++ cosine scheduler
from schedulers_cpp import CosineScheduler

# use this to use the full python version
# from schedulers import CosineScheduler

start_step = 0
stop_step = 10

start_value = 5
stop_value = 20

scheduler = CosineScheduler(start_step, stop_step, start_value, stop_value)

# get values corresponding to step
for step in range(10):
    value = scheduler.step(step)

Available Schedulers

Available Schedulers at current version:

  • Linear:

    linear-ramp linear-decay

  • Cosine:

    cosine-ramp cosine-decay

  • LinearCosine:

    linear-cosine

Metadata

Release files for scheduling-utils 0.2.3

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

Source distribution (sdist)

Source distribution for scheduling-utils 0.2.3
File Size Uploaded Provenance Actions
scheduling_utils-0.2.3.tar.gz 536.8 kB Without provenance Details for scheduling_utils-0.2.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for scheduling-utils 0.2.3
File Interpreter ABI Platform Actions
scheduling_utils-0.2.3-py3-none-any.whl Python 3 none any Details for scheduling_utils-0.2.3-py3-none-any.whl

Total release size: 1.0 MB

Release files / scheduling_utils-0.2.3.tar.gz

Download URL scheduling_utils-0.2.3.tar.gz
Size 536.8 kB
Tags Source
SHA-256 checksum
How to use checksums
6d933ce8e370499cefba71d85a203282f73b8fa31300407528f0e7e06c34d156
BLAKE2b-256 checksum
How to use checksums
cb62ee0297b9f4f14d3c8cc282f7eeb4ffd43c6e95d86236992e7bdf37a9dadf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.10

Release files / scheduling_utils-0.2.3-py3-none-any.whl

Download URL scheduling_utils-0.2.3-py3-none-any.whl
Size 465.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
59c9d87d1c5ec4d71292d89a6facdcc09d4efb966cefb07dbb3f086d943962c9
BLAKE2b-256 checksum
How to use checksums
f06a05c5601ea6c78e744c799407cdc1dadfaf88681124e6db00f25f737133ef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.10

Security for scheduling-utils 0.2.3

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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