Skip to main content

Python Optimization Asynchronous Plumbing.

Project description

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.

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

POAP-0.1.12.tar.gz (22.7 kB view details)

Uploaded Source

Built Distribution

POAP-0.1.12-py2.py3-none-any.whl (28.7 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

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

File hashes

Hashes for POAP-0.1.12.tar.gz
Algorithm Hash digest
SHA256 c8008c5c459dce24691b3e02515cfe23cf871dcfbaabd3b270e44de2ef9cb358
MD5 8b8d86d4cacdb66e55b40911412ac9c5
BLAKE2b-256 70de0b8634d5fe29ff9e0dedad7a46658c1f4b8a85854fa73347fc3128d4e19a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for POAP-0.1.12-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ecc666b0d1f26010c2c636b261c1d1b4d5881f1ce19e8260e819371fd0083a48
MD5 e99d4dd2f5f5fcf9a93474ae8c91c4cd
BLAKE2b-256 14d5181c9297fc66210e4776fb4c43add71e3bb84b1a34b91e22a8df5fe2f284

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page