Skip to main content

implementation of scheduling function utils

Project description

Scheduler Utils

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

Install with: pip install scheduling_utils

To initialize and use for example a cosine scheduler, do the following:

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 at current version:

  • Linear linear-ramp linear-decay
  • Cosine cosine-ramp cosine-decay
  • LinearCosine linear-cosine

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

scheduling_utils-0.1.2.tar.gz (80.8 kB view details)

Uploaded Source

File details

Details for the file scheduling_utils-0.1.2.tar.gz.

File metadata

  • Download URL: scheduling_utils-0.1.2.tar.gz
  • Upload date:
  • Size: 80.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.10

File hashes

Hashes for scheduling_utils-0.1.2.tar.gz
Algorithm Hash digest
SHA256 be72710813657c067fe96a5a220496d89c762f83c48dae23a6d71d9ee8a890e8
MD5 09830cd296521e671d50af1f40debe7a
BLAKE2b-256 906a0bf8a3beceab658e59db02fc2da813c4ffc1bfb8a8c2b51fe3fe14c89cde

See more details on using hashes here.

Supported by

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