Evolutionary optimization algorithms in JAX
Project description
SciPy-like differential evolution for JAX
Fully jitted optimization of any JAX-compatible function. Serial and parallel execution on CPU, GPU, and TPU.
Installation
pip install mutax
Quick start
import jax.numpy as jnp
from mutax import differential_evolution
def cost_function(x):
return jnp.sum(x**2)
bounds = [(-5, 5)] * 10 # 10-dimensional problem with bounds for each dimension
result = differential_evolution(cost_function, bounds)
print("Best solution:", result.x)
print("Objective value:", result.fun)
Documentation
The documentation is available at Read the Docs.
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
mutax-0.4.4.tar.gz
(6.1 kB
view details)
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
mutax-0.4.4-py3-none-any.whl
(6.6 kB
view details)
File details
Details for the file mutax-0.4.4.tar.gz.
File metadata
- Download URL: mutax-0.4.4.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.11 {"installer":{"name":"uv","version":"0.9.11"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3c40af81c97ab8958959c788d2383e6832a1586fdf74efe56d9c689c85d9efce
|
|
| MD5 |
107355a3d8f7cb82c0e676e1970a4c54
|
|
| BLAKE2b-256 |
aab6c7df18a9b46be75af3b0331371fe12b6a3da8abeabc54543746ae2c3be2e
|
File details
Details for the file mutax-0.4.4-py3-none-any.whl.
File metadata
- Download URL: mutax-0.4.4-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.11 {"installer":{"name":"uv","version":"0.9.11"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1e834144294a22ea4f7f6cd2d43b06018f1803ba213763653af6a22c0017355c
|
|
| MD5 |
e9a075d3fc401441ff417d7bfad2a0e8
|
|
| BLAKE2b-256 |
17a918b54cfce917d72bd1178d8a45f29c9b53d541e7abf2747ac6efe066ecdb
|