Optimization benchmark functions and pytest-oriented evaluation helpers.
Project description
optfunc
optfunc provides differentiable benchmark functions for unconstrained
optimization experiments, along with pytest-oriented checks you can reuse when
validating an optimizer against known global minima.
Install
pip install "optdunc-hazy[torch-cpu]"
Then import it with:
import optfunc
Local development
uv build --no-sources
uv run pytest
Release flow
- Update the package version in
pyproject.toml, or runuv version <version> --frozen. - Create and push a Git tag named
v<version>. - CNB will publish that tag to PyPI through the
tag_pushpipeline.
Benchmark definitions are adapted from SFU's optimization benchmark collection.
uv version z.x.y --frozen
rm -rf dist build src/*.egg-info
uv lock
git tag -a vz,x,y -m "Release vX.Y.Z"
git push origin vz,x,y
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
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 optfuncs-0.0.3-py3-none-any.whl.
File metadata
- Download URL: optfuncs-0.0.3-py3-none-any.whl
- Upload date:
- Size: 13.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.22 {"installer":{"name":"uv","version":"0.9.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f7089bd3b3599ae253340b4bb82157cd709275476ef5c5c2ff538e0fc118a8c7
|
|
| MD5 |
57283e8b54e0d87b6e9b6a2ff59fbfb1
|
|
| BLAKE2b-256 |
bb6d6b4429e3b845429420380dc3ef85e6ddbcf7cd534ca38c0d2e50f4ebc315
|