An adaptation of pytorch OneCycleLR that doesn't crash when max steps is reached
Project description
OneLongCycleLR
This is a simple adaptation from the OneCycleLR of pytorch.optim package. The default behaviour is to raise a ValueError when the maximum number of steps is reached. This one instead just keeps on returning the last value.
To install it, just use:
pip install onelongcyclelr
And to use it you need to import it like
from onelongcyclelr import OneLongCycleLR
The arguments and keywords needed are exactly the same as the official implementation.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file onelongcyclelr-0.1.2.tar.gz.
File metadata
- Download URL: onelongcyclelr-0.1.2.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.9.13 Linux/5.15.0-40-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3128b7ab0e081f904c8681dc5b94a87056b6f890601183b5cb0d3469fa0af512
|
|
| MD5 |
22bc23fc40f114752a5b96290fbe97bf
|
|
| BLAKE2b-256 |
7ea3f8f98cb1ac1d6b5b25188c510a2332fc51181d71596f78f4ea0ec4e79484
|
File details
Details for the file onelongcyclelr-0.1.2-py3-none-any.whl.
File metadata
- Download URL: onelongcyclelr-0.1.2-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.9.13 Linux/5.15.0-40-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ba1b3b5ed6572eca52ba7cd1b0098f9c79bc316fd7343de512ef512c296f3841
|
|
| MD5 |
83b40ecbd6e12028b7d5a6cf405441fe
|
|
| BLAKE2b-256 |
d649c581870953830a045b46a44ca61ac21fc090ea117ba189372e70931b0128
|