module documentation

Module for computing ERT loss ratio

This module outputs figures and tables showing ERT loss ratios. Comparisons are based on computing the ratio between an ERT value and a reference (best) ERT value (or the inverse)

Function beautify Format the figure.
Function boxplot Makes a box and whisker plot.
Function detERT Undocumented
Function detf Determines a function value given a number of evaluations.
Function figure_caption Undocumented
Function generateData Undocumented
Function generateFigure Generates ERT loss ratio figures.
Function generateSingleTableHtml Generates single ERT loss ratio table.
Function generateSingleTableTex Generates single ERT loss ratio table.
Function generateTable Generates ERT loss ratio tables.
Function main Generates ERT loss ratio boxplot figures.
Function plot Plot the ERT log loss figures.
Function table_caption Undocumented
Variable boxescolor Undocumented
Variable capscolor Undocumented
Variable evalf Undocumented
Variable f_thresh Undocumented
Variable flierscolor Undocumented
Variable medianscolor Undocumented
Variable whiskerscolor Undocumented
def beautify():

Format the figure.

def boxplot(x, notch=0, sym='b+', positions=None, widths=None):

Makes a box and whisker plot.

Adapted from matplotlib.axes 0.98.5.2 Modified such that the caps are set to the 10th and 90th percentiles, and to have some control on the colors.

call signature:

boxplot(x, notch=0, sym='+', positions=None, widths=None)

Make a box and whisker plot for each column of x or each vector in sequence x. The box extends from the lower to upper quartile values of the data, with a line at the median. The whiskers extend from the box to show the range of the data. Flier points are those past the end of the whiskers.

  • notch = 0 (default) produces a rectangular box plot.
  • notch = 1 will produce a notched box plot

sym (default 'b+') is the default symbol for flier points. Enter an empty string ('') if you don't want to show fliers.

whis (default 1.5) defines the length of the whiskers as a function of the inner quartile range. They extend to the most extreme data point within ( whis*(75%-25%) ) data range.

positions (default 1,2,...,n) sets the horizontal positions of the boxes. The ticks and limits are automatically set to match the positions.

widths is either a scalar or a vector and sets the width of each box. The default is 0.5, or 0.15*(distance between extreme positions) if that is smaller.

x is an array or a sequence of vectors.

Returns a dictionary mapping each component of the boxplot to a list of the matplotlib.lines.Line2D instances created.

Copyright (c) 2002-2009 John D. Hunter; All Rights Reserved

def detERT(entry, funvals):

Undocumented

def detf(entry, evals):

Determines a function value given a number of evaluations.

Let A be the algorithm considered. Let f=f_A(evals) be the smallest target value such that the expected running time of algorithm A was smaller than or equal to evals.

Parameters
entryUndocumented
evalsUndocumented
DataSet entrydata set
list evalsnumbers of function evaluations considered
Returns
list of the target function values
def figure_caption():

Undocumented

def generateData(dsList, evals, CrE_A):

Undocumented

def generateFigure(dsList, CrE=0.0, isStoringXRange=True, outputdir='.', info='default'):

Generates ERT loss ratio figures.

Parameters
dsListUndocumented
CrEUndocumented
isStoringXRangeUndocumented
outputdirUndocumented
infoUndocumented
DataSetList dsListinput data set
float CrEcrafting effort (see COCO documentation)
bool isStoringXRangeif set to True, the first call to this function sets the global evalf and all subsequent calls will use this value as boundaries in the generated figures.
string outputdiroutput folder (must exist)
string infostring suffix for output file names
def generateSingleTableHtml(dsList, funcs, mFE, d, prcOfInterest, EVALS, data, outputdir='.', info='default'):

Generates single ERT loss ratio table.

Parameters
dsListUndocumented
funcs
mFE
d
prcOfInterest
EVALS
data
outputdirUndocumented
infoUndocumented
DataSetList dsListinput data set
string outputdiroutput folder (must exist)
string infostring suffix for output file names
def generateSingleTableTex(dsList, funcs, mFE, d, prcOfInterest, EVALS, data, outputdir='.', info='default'):

Generates single ERT loss ratio table.

Parameters
dsListUndocumented
funcs
mFE
d
prcOfInterest
EVALS
data
outputdirUndocumented
infoUndocumented
DataSetList dsListinput data set
string outputdiroutput folder (must exist)
string infostring suffix for output file names
def generateTable(dsList, CrE=0.0, outputdir='.', info='default'):

Generates ERT loss ratio tables.

Parameters
dsListUndocumented
CrEUndocumented
outputdirUndocumented
infoUndocumented
DataSetList dsListinput data set
float CrEcrafting effort (see COCO documentation)
string outputdiroutput folder (must exist)
string infostring suffix for output file names
def main(dsList, CrE=0.0, isStoringXRange=True, outputdir='.', info='default'):

Generates ERT loss ratio boxplot figures.

Calls method generateFigure.

def plot(xdata, ydata):

Plot the ERT log loss figures.

Two cases: box-whisker plot is used for representing the data of all functions, otherwise all data is represented using crosses.

def table_caption():

Undocumented

boxescolor: str =

Undocumented

capscolor: str =

Undocumented

evalf =

Undocumented

f_thresh: float =

Undocumented

flierscolor: str =

Undocumented

medianscolor: str =

Undocumented

whiskerscolor: str =

Undocumented