Skip to main content

BAICO

BAICO (Best Arm Identification-based Combinatorial Optimization Algorithms) is a collection of discrete optimization algorithms for stochastic objective functions based on the best arm identification technique.

Install

pip3 install baico

Usage

import random
weights = {
    'a': 1,
    'b': 2,
    'c': 3,
    'd': 4,
}
def fn(S): return sum(weights[a] * random.random() for a in S)
support = weights.keys()

solver = StochasticGreedy(fn=fn, support=support, cardinality=2)
S = solver.optimal_solution()
..frozenset({'d', 'c'})

Licenses

This project is licensed under the MIT License.

Metadata

Release files for baico 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for baico 0.1.0
File Interpreter ABI Platform
baico-0.1.0-py3-none-any.whl Python 3 none any Details

Release files / baico-0.1.0-py3-none-any.whl

Download URL baico-0.1.0-py3-none-any.whl
Size 9.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8aec1127627ee428b04713b267c1fa14c277415d73ac4c2efeba2171fe137d68
BLAKE2b-256 checksum
How to use checksums
04ab97b991d0d1e909ac6c43b8d47b3094f6b678d1dcc9106c832c3d3f6191c5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.8.1 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7

Security for baico 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page