https://github.com/klieret/ray-tune-stoppers-contrib
Additional stoppers for ray tune
https://github.com/klieret/ray-tune-stoppers-contrib
ai hyperparameter-optimization hyperparameter-tuning machine-learning ml ray ray-tune
Last synced: about 1 month ago
JSON representation
Additional stoppers for ray tune
- Host: GitHub
- URL: https://github.com/klieret/ray-tune-stoppers-contrib
- Owner: klieret
- License: mit
- Created: 2022-12-11T17:14:59.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-04-07T21:36:56.000Z (2 months ago)
- Last Synced: 2025-04-07T22:32:01.157Z (2 months ago)
- Topics: ai, hyperparameter-optimization, hyperparameter-tuning, machine-learning, ml, ray, ray-tune
- Language: Python
- Homepage: https://ray-tune-stoppers-contrib.readthedocs.io/
- Size: 136 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Additional stoppers for ray tune

[](https://ray-tune-stoppers-contrib.readthedocs.io/en/latest/?badge=latest)
[](https://results.pre-commit.ci/latest/github/klieret/ray-tune-stoppers-contrib/main)
[](https://github.com/klieret/ray-tune-stoppers-contrib/actions/workflows/test.yaml)
[](https://github.com/klieret/ray-tune-stoppers-contrib/actions/workflows/check-links.yaml)
[](https://app.codecov.io/github/klieret/ray-tune-stoppers-contrib)
[](https://gitmoji.dev)
[](https://github.com/python/black)
[](https://git-scm.com/book/en/v2/GitHub-Contributing-to-a-Project)## 📝 Description
[Ray tune][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][asha-paper], 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
```bash
pip3 install rt_stoppers_contrib
```## 🔥 Using it
For a full list of the stoppers offered, see the the [documentation][doc-all-stoppers].
Using any of the stoppers is as easy as
```python3
from rt_stoppers_contrib import NoImprovementTrialStoppertuner = tune.Tuner(
tune.Trainable,
tune_config=...,
run_config=air.RunConfig(stop=NoImprovementTrialStopper("my_metric"))
)
```For more information, refer to the [documentation][docs].
## 🧰 Development setup
```bash
pip3 install pre-commit
cd
pre-commit install
gitmoji -i
```## 💖 Contributing
Your help is greatly appreciated! Suggestions, bug reports and feature requests are best opened as [github issues](https://github.com/klieret/ray-tune-stoppers-contrib/issues). You are also very welcome to submit a [pull request](https://github.com/klieret/ray-tune-stoppers-contrib/pulls)!
Bug reports and pull requests are credited with the help of the [allcontributors bot](https://allcontributors.org/).
## ⚖️ License
See [LICENSE](LICENSE.txt) for more information. The logo is built from the official [ray-tune][ray-tune] logo
together with [this stop sign][stop-sign] (CC 4.0).[ray-tune]: https://docs.ray.io/en/latest/tune/index.html
[asha-paper]: https://arxiv.org/abs/1810.05934
[docs]: https://ray-tune-stoppers-contrib.readthedocs.io/
[stop-sign]: https://commons.wikimedia.org/wiki/File:Stop-sign.jpg
[doc-all-stoppers]: https://ray-tune-stoppers-contrib.readthedocs.io/en/latest/autoapi/rt_stoppers_contrib/index.html