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(xs):
return jnp.sum(xs**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.5.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.5-py3-none-any.whl
(6.6 kB
view details)
File details
Details for the file mutax-0.4.5.tar.gz.
File metadata
- Download URL: mutax-0.4.5.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"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 |
abc8400a056687af807d86d8238b3ae59e2ecf082efb0b3a0e9a0a81e19fd7f4
|
|
| MD5 |
45bf5f8e93f00a8c034e44447e0a26fa
|
|
| BLAKE2b-256 |
5f77727ac3c8f47d3738fa69111cff8c6d38b75463582203438f134fc6d9b698
|
File details
Details for the file mutax-0.4.5-py3-none-any.whl.
File metadata
- Download URL: mutax-0.4.5-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"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 |
7149651dd1bfef24218521c93e2e221e73c45dda2bd89dbf0ce42f203baad643
|
|
| MD5 |
5c6f24a9a8a15b5a65815f7dd86572b8
|
|
| BLAKE2b-256 |
bc6e4f7533d6bb3e8ed6a95e963b0295d47e0c9421f68b743c8449d9dffabdc7
|