Skip to main content

Benchmarking framework for all types of black-box optimization algorithms, postprocessing.

Project description

COmparing Continuous Optimisers (COCO) post-processing

The (cocopp) package takes data generated with the COCO framework to compare continuous opitmizers and produces output figures and tables in html format and for including into LaTeX-documents.

Installation

   pip install cocopp

Usage

The main method of the cocopp package is main (currently aliased to cocopp.rungeneric.main). The main method also allows basic use of the post-processing through a shell command-line interface. The recommended use is however from an IPython/Jupyter shell or notebook:

>>> import cocopp
>>> cocopp.main('exdata/my_output another_folder yet_another_or_not')  

postprocesses data from one or several folders, for example data generated with the help from the cocoex module. Each folder should contain data of a full experiment with a single algorithm. (Within the folder the data can be distributed over subfolders). Results can be explored from the ppdata/index.html file, unless a a different output folder is specified with the -o option. Comparative data from over 200 full experiments are archived online and can be listed, filtered, and retrieved from cocopp.archives (of type OfficialArchives) and processed alone or together with local data. For example

>>> cocopp.archives.bbob('bfgs')  
['2009/BFGS_...

lists all data sets run on the bbob testbed containing 'bfgs' in their name. The first in the list can be postprocessed by

>>> cocopp.main('bfgs!')  

All of them can be processed like

>>> cocopp.main('bfgs*')  

Only a trailing * is accepted and any string containing the substring is matched. The postprocessing result of

>>> cocopp.main('bbob/2009/*')  

can be browsed at https://numbbo.github.io/ppdata-archive/bbob/2009-all. To display algorithms in the background, the genericsettings.background variable needs to be set:

>>> cocopp.genericsettings.background = {None: cocopp.archives.bbob.get_all('bfgs')}  

where None invokes the default color (grey) and line style (solid) genericsettings.background_default_style. Now we could compare our own data with the first 'bfgs'-matching archived algorithm where all other archived BFGS data are shown in the background with the command

>>> cocopp.main('exdata/my_output bfgs!')  

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

cocopp-2.6.tar.gz (4.7 MB view details)

Uploaded Source

Built Distribution

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

cocopp-2.6-py2.py3-none-any.whl (4.7 MB view details)

Uploaded Python 2Python 3

File details

Details for the file cocopp-2.6.tar.gz.

File metadata

  • Download URL: cocopp-2.6.tar.gz
  • Upload date:
  • Size: 4.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.8.2 requests/2.27.1 setuptools/59.8.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.12

File hashes

Hashes for cocopp-2.6.tar.gz
Algorithm Hash digest
SHA256 ea113d71e0ede2953bfc41fb324984701766562b0f3c8e665057308cd6c34bbd
MD5 04859a5c4358cbc4e54239d76c95600a
BLAKE2b-256 57e6f74f58cc06d2fa120c6222fb60b329aff98797e03b1309d11dac83d85e98

See more details on using hashes here.

File details

Details for the file cocopp-2.6-py2.py3-none-any.whl.

File metadata

  • Download URL: cocopp-2.6-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.7 MB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.8.2 requests/2.27.1 setuptools/59.8.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.12

File hashes

Hashes for cocopp-2.6-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ecb36af7a8e3724a58e03e679599a38c8790cd9033b535f4555ae3b623626470
MD5 7f8f75309c7ed7eec9b2bb224df226fc
BLAKE2b-256 05395acb22bde7588428f65d6c910df303a2f73a5e0a9716d3e05cd6177516a8

See more details on using hashes here.

Supported by

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