Skip to main content

cocopp: 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 cocopp.Interface class contains the most basic commands and data of the package, sufficient for most use cases.

>>> import cocopp
>>> sorted(cocopp.Interface.dir())
['archives', 'config', 'genericsettings', 'load', 'main']
>>> all(hasattr(cocopp, name) for name in cocopp.Interface.dir())
True

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 http://coco.gforge.inria.fr/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!')  

Metadata

Release files for cocopp 2.3.3.18

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.3.3.18
File Size Uploaded
cocopp-2.3.3.18.tar.gz 4.6 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for cocopp 2.3.3.18
File Interpreter ABI Platform
cocopp-2.3.3.18-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 9.3 MB

Release files / cocopp-2.3.3.18.tar.gz

Download URL cocopp-2.3.3.18.tar.gz
Size 4.6 MB
Tags Source
SHA-256 checksum
How to use checksums
24a121d13effc5565069b7357a2414c317c91dee42513ee87d66309e6b61247e
BLAKE2b-256 checksum
How to use checksums
902f560583666240a4262ab429c724265427cd5c8deb82f69eb984eca84412db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

Release files / cocopp-2.3.3.18-py2.py3-none-any.whl

Download URL cocopp-2.3.3.18-py2.py3-none-any.whl
Size 4.7 MB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
8df6bae872890ca97ff4c3d94e47ee4ab47f454b975e2a6d6827316626efa41f
BLAKE2b-256 checksum
How to use checksums
c48948484926704a41e53d10cd6449fabb7ed8d8d3b4cd0928ada3dfd1b0fa11
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3
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