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

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.0.tar.gz (56.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

scheduling_utils-0.1.0-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for scheduling_utils-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a52314641a35d8daf5d1207ffe85b60b86efe7f2d7a727c93f829cfbbf66393d
MD5 6d0a82fbba53d64086d98b2a1a74a059
BLAKE2b-256 604ca045688b23e024c51d9a9e7d5909d1718c8007f1d9876f3e588a40761841

See more details on using hashes here.

File details

Details for the file scheduling_utils-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for scheduling_utils-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3192ee66d30f546707313b12184598770f4041426d98270ba6fcdb80f6a7f36c
MD5 a774175316ad61b6288fd85ad28c730b
BLAKE2b-256 b3c1ed800a5d4234134507a634aad3f0fbac1f871d836a0436330f42803e90cb

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