cocopp.__init__ module documentationcocopp
COmparing Continuous Optimisers (COCO) post-processing package
This package (cocopp) generates output figures and tables in html format
and for including into LaTeX-documents.
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 command-line interface. The recommended use
is however from an IPython/Jupyter shell:
>>> import cocopp >>> cocopp.main('exdata/my_output another_folder yet_another_or_not') # doctest:+SKIP
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') # doctest:+ELLIPSIS,+SKIP, ['2009/BFGS_...
lists all data sets containing 'bfgs' in their name. The first in the list can be postprocessed by
>>> cocopp.main('bfgs!') # doctest:+SKIP
All of them can be processed like
>>> cocopp.main('bfgs*') # doctest:+SKIP
Only a trailing * is accepted and any string containing the
substring is matched. The postprocessing result of
>>> cocopp.main('bbob/2009/*') # doctest:+SKIP
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')} # doctest:+SKIP
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
>>> cocopp.main('exdata/my_output bfgs!') # doctest:+SKIP
| Class | Interface | collection of the most user-relevant modules, methods and data. |