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.4

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.4
File Size Uploaded
POAP-0.1.4.tar.gz 13.7 kB Details

Built distribution (wheel)

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

Total release size: 32.0 kB

Release files / POAP-0.1.4.tar.gz

Download URL POAP-0.1.4.tar.gz
Size 13.7 kB
Tags Source
SHA-256 checksum
How to use checksums
7ad5f9b7d3cdfb373e4787eddcfd3444a39c87ba04157e6497d0dcdd6970aa50
BLAKE2b-256 checksum
How to use checksums
f770cb84053379e15c66d8cc2ef8d3bac2f7136bcfd405bef6928e5783dfbb72
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

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

Download URL POAP-0.1.4-py2.py3-none-any.whl
Size 18.3 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
eba60b80cbd9ff32490f97a9a3345b9d942b6ebf8c5d58dff87cddf12efbf6e3
BLAKE2b-256 checksum
How to use checksums
1edd3bd94f0e7d9800977e31ae6d7f3098942282907ad08e6fa442e2ead71622
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

0.1.26

2 release files

0.1.24

2 release files

0.1.18

2 release files

0.1.17

2 release files

0.1.16

2 release files

0.1.15

2 release files

0.1.14

2 release files

0.1.13

2 release files

0.1.12

2 release files

0.1.11

2 release files

0.1.10

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

This release

0.1.4 This release

2 release files

0.1.3

2 release files

0.1.2

2 release files

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