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.11.tar.gz (21.5 kB view details)

Uploaded Source

Built Distribution

POAP-0.1.11-py2.py3-none-any.whl (27.0 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

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

File hashes

Hashes for POAP-0.1.11.tar.gz
Algorithm Hash digest
SHA256 57f082c06490875e00b63c52de6c49c24d875d9afccded21ad5428a453c58d4f
MD5 5ace6c9cf1794ca3923ae5dec48813bd
BLAKE2b-256 f2d7a69e84e371e5b4464a5fcf9758ca250b5b6642cef37d74b0439502c51ad2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for POAP-0.1.11-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 eefe76ad5e526d9246f5d867d0e6a9ffecb778c378a5bbe8ce4c4b4aa2ea79ca
MD5 362c28101ede6d4aec7522733f18f2c7
BLAKE2b-256 8df17dc820dd24b88e68ae34951d7f528e05d0636bfa4c0c7ceb1e6b003a0cbb

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