redsho
Robust Evolutionary Direction Set Hyperparameter Optimizer
Redsho is a discrete optimizer, which means that it works with parameters that can only take on a certain set of values. This works well for evaluating neural networks and other large and complex models, since they take so long to train and test, and since the hyperparameters can have non-intuitive, strongly non-linear, and interactive effects.
Redsho (pictured in action above), an evolutionary search algorithm variant inspired by direction set methods like Powell's method, so much so that it was originally called Evolutionary Powell's method. Here is a detailed description of how it works.
Installation
It's on PyPI, so install with
pip install redsho
or as part of a uv environment
uv add redsho
If you want to experiment with tweaking the algorithm, clone the repository to your local machine and install it from there.
git clone https://codeberg.org/brohrer/redsho.git
python3 -m pip install -e redsho
Run the demo
In a python script
import redsho.demo
Parallelization
Redsho can seamlessly take advantage of multiple processor systems. Instead of
from redsho.optimizer import Redsho
try
from redsho.parallel_optimizer import ParallelRedsho
It automatically recruits all your processors (but one) to do its bidding.
Release files for redsho 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| redsho-0.1.1.tar.gz | 417.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| redsho-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 427.2 kB
Release files / redsho-0.1.1.tar.gz
| Download URL | redsho-0.1.1.tar.gz |
|---|---|
| Size | 417.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1ce96c1ad51e4369eacd3ef559221d13b14284b61a6009537e89527710e558b3
|
|
BLAKE2b-256 checksum How to use checksums |
e433242229c01ba9bb704b0cfd4ff9849bcfc1cf62562067a83d503a20c38cb8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.5.1
|
Release files / redsho-0.1.1-py3-none-any.whl
| Download URL | redsho-0.1.1-py3-none-any.whl |
|---|---|
| Size | 9.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3eb1d0c772bf2247524d1584a94903241c86e833c11fe9f7a061cb8b9bcb5e64
|
|
BLAKE2b-256 checksum How to use checksums |
9d9075213d28e359fc38b4715d247908c40a3074c0a50347173b6d02d04193b1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.5.1
|