Skip to main content

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

  1. Update the package version in pyproject.toml, or run uv version <version> --frozen.
  2. Create and push a Git tag named v<version>.
  3. CNB will publish that tag to PyPI through the tag_push pipeline.

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

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

optfuncs-0.0.3-py3-none-any.whl (13.3 kB view details)

Uploaded Python 3

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

Hashes for optfuncs-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f7089bd3b3599ae253340b4bb82157cd709275476ef5c5c2ff538e0fc118a8c7
MD5 57283e8b54e0d87b6e9b6a2ff59fbfb1
BLAKE2b-256 bb6d6b4429e3b845429420380dc3ef85e6ddbcf7cd534ca38c0d2e50f4ebc315

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page