Skip to main content

Additional stoppers for ray tune

logo

Documentation Status pre-commit.ci status Python package Check Markdown links codecov gitmoji Black PR welcome

📝 Description

Ray tune is a tool for scalable hyperparameter tuning for machine learning applications. For intelligent hyperperameter optimization, trials that are performing inadequately should be stopped early. Part of this can be done by schedulers such as ASHA, but additional explicit stopping criteria are useful as well.

For example, a trial that has converged and is no longer producing better results, but is still outperforming all other running trials, will not be stopped by ASHA. Ray tune currently only provides three different stoppers: a plateau stopper, a maximum iterations stopper, and a timeout stopper.

This module aims to foster a greater variety of community maintained contributed stopping mechanisms.

📦 Installation

pip3 install rt_stoppers_contrib

🔥 Using it

For a full list of the stoppers offered, see the the documentation.

Using any of the stoppers is as easy as

from rt_stoppers_contrib import NoImprovementTrialStopper

tuner = tune.Tuner(
    tune.Trainable,
    tune_config=...,
    run_config=air.RunConfig(stop=NoImprovementTrialStopper("my_metric"))
)

For more information, refer to the documentation.

🧰 Development setup

pip3 install pre-commit
cd <this repository>
pre-commit install
gitmoji -i

💖 Contributing

Your help is greatly appreciated! Suggestions, bug reports and feature requests are best opened as github issues. You are also very welcome to submit a pull request!

Bug reports and pull requests are credited with the help of the allcontributors bot.

⚖️ License

See LICENSE for more information. The logo is built from the official ray-tune logo together with this stop sign (CC 4.0).

Metadata

Release files for rt-stoppers-contrib 1.1.2

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

Source distribution (sdist)

Source distribution for rt-stoppers-contrib 1.1.2
File Size Uploaded
rt_stoppers_contrib-1.1.2.tar.gz 10.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for rt-stoppers-contrib 1.1.2
File Interpreter ABI Platform
rt_stoppers_contrib-1.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 17.6 kB

Release files / rt_stoppers_contrib-1.1.2.tar.gz

Download URL rt_stoppers_contrib-1.1.2.tar.gz
Size 10.1 kB
Tags Source
SHA-256 checksum
How to use checksums
6a7c61604a02a35b056cdf1bbc066cdc9d3b203fd73caf07ccd0fbd71eaa8a57
BLAKE2b-256 checksum
How to use checksums
69f8ff57d341871a0eb8fa44f6885dff3912eaa92084d7deb8c91684856babcd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.1

Release files / rt_stoppers_contrib-1.1.2-py3-none-any.whl

Download URL rt_stoppers_contrib-1.1.2-py3-none-any.whl
Size 7.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
684822a7aad25ce8d203bedc06af1c154ad879412296b14d9601ffd99da8c507
BLAKE2b-256 checksum
How to use checksums
47ab368208b40f0e89b78fb40d3dd383b346380eec08cb61665ecac40d88880f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.1

Release history Release notifications | RSS feed

This release

1.1.2 This release

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.0

2 release files

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