Skip to main content

COmparing Continuous Optimisers (COCO) PostProcess

version license download DOI paper

The cocopp Python package implements the postprocess part of COCO: A Platform for Comparing Continuous Optimizers in a Black-Box Setting, comparing not only continuous optimisers. The package uses data generated with the COCO framework and produces output figures and tables in html format and for inclusion into LaTeX documents.

Installation

To install the latest release from PyPI:

    pip install -U cocopp

To install the current main branch:

    git clone https://github.com/numbbo/coco-postprocess.git
    cd coco-postprocess
    pip install .

The full release history can be found here or here.

Documentation

The documentation for the coco-postprocess package cocopp can be found at

Usage (see also here)

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

>>> import cocopp
>>> dslist = 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 archives which are attributes of cocopp.archives 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

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

All of them can be processed like

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

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

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

can be browsed at https://numbbo.github.io/ppdata-archive/bbob/2009. To display algorithms in the background, the cocopp.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) cocopp.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

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

Metadata

Release files for cocopp 2.9.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cocopp 2.9.3
File Size Uploaded Provenance Actions
cocopp-2.9.3.tar.gz 8.6 MB With provenance Details for cocopp-2.9.3.tar.gz

Release files / cocopp-2.9.3.tar.gz

Download URL cocopp-2.9.3.tar.gz
Size 8.6 MB
Tags Source
SHA-256 checksum
How to use checksums
a46fa052d3e76e906c006878ea810c903a2763b8af14da3bc0c915a5cdecf157
BLAKE2b-256 checksum
How to use checksums
aeddefb44b0b5a6e5984e2c73991f36c76da6b5ad3d97128a35986e638a0a899
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.

Transparency log

Security for cocopp 2.9.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

1 file in this release has been uploaded with provenance metadata.

Attestation for cocopp-2.9.3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.9.3 This release

1 release file Full provenance

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