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

Uploaded Source

Built Distribution

POAP-0.1.15-py2.py3-none-any.whl (35.4 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for POAP-0.1.15.tar.gz
Algorithm Hash digest
SHA256 5ce708e3200c1a96a68647fbf60117472ae44d8d37aba13d75e91da5683e03f3
MD5 ae20b794ec5a5f2fc40860c74d965964
BLAKE2b-256 58016de1c377d65365628bc3be2814a56a3d7ea903c154877934e29b7323e220

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for POAP-0.1.15-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 5b3bb13ab70853c9560e595888a41f9b0be61e09b0514ab7426406573e0e505f
MD5 e2c12c3fb013a20a876e2bf5a528a449
BLAKE2b-256 d12d8754a89a33a712205ba6c972bc8c5e6ab8b00f9ea301edc2099c26de2111

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