Taking the pain out of choosing a Python global optimizer
Project description
Humpday: Pure Python or Javascript Derivative-Free Optimization
22 derivative-free optimization algorithms in pure Python. No compilation, just numpy.
Install & Use
pip install humpday
from humpday import minimize
def objective(x):
return (x[0] - 2)**2 + (x[1] - 3)**2
result = minimize(objective, bounds=[(-5, 5), (-5, 5)], method='DifferentialEvolution')
print(f"Solution: {result.x}") # [2.0, 3.0]
Algorithms
22 validated optimizers: See them in action | Source code
Trust region methods, evolutionary algorithms, metaheuristics.
Comparison
| Library | Dependencies | Install Size | Global Optimizers | Pure Python |
|---|---|---|---|---|
| Humpday | numpy only | ~1MB | 22 validated | ✅ |
| SciPy | C/Fortran libs | ~50MB | 3 | ❌ |
| Optuna | Many | ~100MB | 100+ | ❌ |
| Nevergrad | Many | ~200MB | 200+ | ❌ |
Humpday's niche: When you need optimization that works anywhere Python runs, without dependencies or compilation.
License
MIT - Use freely in commercial and research projects.
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 humpday-0.9.0.tar.gz.
File metadata
- Download URL: humpday-0.9.0.tar.gz
- Upload date:
- Size: 3.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6d6631a8a9aa7a6527d9a08886c40e33852f4dfaf34e0715866e914d05d1278e
|
|
| MD5 |
2e87e82ca59f3f19bd2d758d913aac3f
|
|
| BLAKE2b-256 |
f7d57306a4abaf9a6de11d146e6664fd79bf45bd97c81d2505c08038b956dcab
|
Provenance
The following attestation bundles were made for humpday-0.9.0.tar.gz:
Publisher:
publish.yml on microprediction/humpday
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
humpday-0.9.0.tar.gz -
Subject digest:
6d6631a8a9aa7a6527d9a08886c40e33852f4dfaf34e0715866e914d05d1278e - Sigstore transparency entry: 1630807541
- Sigstore integration time:
-
Permalink:
microprediction/humpday@bc55145e7698474a3c9f3c8dcae1dcdf09dffcd3 -
Branch / Tag:
refs/tags/v0.9.0 - Owner: https://github.com/microprediction
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@bc55145e7698474a3c9f3c8dcae1dcdf09dffcd3 -
Trigger Event:
release
-
Statement type:
File details
Details for the file humpday-0.9.0-py3-none-any.whl.
File metadata
- Download URL: humpday-0.9.0-py3-none-any.whl
- Upload date:
- Size: 87.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d551b8a78440f90d529c822ed6569a4a8b23a873a4cfbc6afbf9566b71d02233
|
|
| MD5 |
03577b1c34abcb4feaac5ac897daf5df
|
|
| BLAKE2b-256 |
252a88e00750230216524584a640ae48ba12d2302cc58dd61ff1d89bc6d35dfa
|
Provenance
The following attestation bundles were made for humpday-0.9.0-py3-none-any.whl:
Publisher:
publish.yml on microprediction/humpday
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
humpday-0.9.0-py3-none-any.whl -
Subject digest:
d551b8a78440f90d529c822ed6569a4a8b23a873a4cfbc6afbf9566b71d02233 - Sigstore transparency entry: 1630807551
- Sigstore integration time:
-
Permalink:
microprediction/humpday@bc55145e7698474a3c9f3c8dcae1dcdf09dffcd3 -
Branch / Tag:
refs/tags/v0.9.0 - Owner: https://github.com/microprediction
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@bc55145e7698474a3c9f3c8dcae1dcdf09dffcd3 -
Trigger Event:
release
-
Statement type: