Skip to main content

POAP: Plumbing for Optimization with Asynchronous Parallelism

POAP provides an event-driven framework for building and combining asynchronous optimization strategies. A typical optimization code written with POAP might look like:

from poap.strategy import FixedSampleStrategy
from poap.strategy import CheckWorkStrategy
from poap.controller import ThreadController
from poap.controller import BasicWorkerThread

# samples = list of sample points ...

controller = ThreadController()
sampler = FixedSampleStrategy(samples)
controller.strategy = CheckWorkerStrategy(controller, sampler)

for i in range(NUM_WORKERS):
    t = BasicWorkerThread(controller, objective)
    controller.launch_worker(t)

result = controller.run()
print 'Best result: {0} at {1}'.format(result.value, result.params)

The basic ingredients are a controller capable of asking workers to run function evaluations and a strategy for choosing where to sample. The strategies send the controller proposed actions, which the controller then accepts or rejects; the controller, in turn, informs the strategies of relevant events through callback functions.

Most users will probably want to provide their own strategies, controllers, or both.

Metadata

Release files for POAP 0.1.17

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

Source distribution (sdist)

Source distribution for POAP 0.1.17
File Size Uploaded Provenance Actions
POAP-0.1.17.tar.gz 28.1 kB Without provenance Details for POAP-0.1.17.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for POAP 0.1.17
File Interpreter ABI Platform Actions
POAP-0.1.17-py2.py3-none-any.whl Python 3, Python 2 none any Details for POAP-0.1.17-py2.py3-none-any.whl

Total release size: 64.4 kB

Release files / POAP-0.1.17.tar.gz

Download URL POAP-0.1.17.tar.gz
Size 28.1 kB
Tags Source
SHA-256 checksum
How to use checksums
1392ed511cf30bd3d45cc9bad0d76ec4c4f0ae8135c76b91683d96b6d0e86ee3
BLAKE2b-256 checksum
How to use checksums
13612185976084980ee221c11cbf07f0dbdef343790b6fac52be14d915399bf1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / POAP-0.1.17-py2.py3-none-any.whl

Download URL POAP-0.1.17-py2.py3-none-any.whl
Size 36.3 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
81dc31819ad53b500115be0cd949944b768b94bf7843f9d3f284d6e610607a90
BLAKE2b-256 checksum
How to use checksums
af1bc9420ba4a4209ff7400a94839a277d33d3043ce80f5a35b40df1e2ea0e2b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for POAP 0.1.17

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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