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 Distribution

optdunc_hazy-0.0.2.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

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

optdunc_hazy-0.0.2-py3-none-any.whl (13.2 kB view details)

Uploaded Python 3

File details

Details for the file optdunc_hazy-0.0.2.tar.gz.

File metadata

  • Download URL: optdunc_hazy-0.0.2.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for optdunc_hazy-0.0.2.tar.gz
Algorithm Hash digest
SHA256 bfdd0bbb83a281750e8000f331481b50246e616e23f99f5617e2222d129ee740
MD5 c1d2c17c104f23fc6d8cb4034b851940
BLAKE2b-256 6330ad6c78b9ada3d2966613e4e2edca1687b7dc83d9ea5752b6e2f6ef2b1b27

See more details on using hashes here.

File details

Details for the file optdunc_hazy-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: optdunc_hazy-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 13.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for optdunc_hazy-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1d860a7f3d4b35b041848737a42b7c32c415eb2441a6d849c360f27a461dc03c
MD5 9d449821bf31c10badeb35172df0c153
BLAKE2b-256 729857a5a2e5c4aed2f36c8bc35f6f9e69cfc1057094614d863881d5038c53a9

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