Skip to main content

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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

POAP-0.1.6.tar.gz (17.8 kB view details)

Uploaded Source

Built Distribution

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

POAP-0.1.6-py2.py3-none-any.whl (22.8 kB view details)

Uploaded Python 2Python 3

File details

Details for the file POAP-0.1.6.tar.gz.

File metadata

  • Download URL: POAP-0.1.6.tar.gz
  • Upload date:
  • Size: 17.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for POAP-0.1.6.tar.gz
Algorithm Hash digest
SHA256 dc1c4fbb06d79ec8e5e04db8b1207d0aee85768cc2007708b5ba7033a1e41d28
MD5 5d6d858cdc8715a120449d5e573db376
BLAKE2b-256 555e8222122dfd1214652fed14d49b8dbfcb87919c4584f199a683f5ee04cf8c

See more details on using hashes here.

File details

Details for the file POAP-0.1.6-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for POAP-0.1.6-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 41dc8280207bbdac61f1e679424e4bf38198344b0451c78528b0018fffc3e9aa
MD5 480fa5ad0687a9b152bffd8149a6be91
BLAKE2b-256 61fcb0fe19e45f3dea5f9c3cdf1a4e21fa494357c57f7a18a3294fc215c3da3b

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.26

2 files

0.1.25

2 files

0.1.24

2 files

0.1.18

2 files

0.1.17

2 files

0.1.16

2 files

0.1.15

2 files

0.1.14

2 files

0.1.13

2 files

0.1.12

2 files

0.1.11

2 files

0.1.10

2 files

0.1.9

2 files

0.1.8

2 files

0.1.7

2 files

This release

0.1.6 This release

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 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