class documentation
Unit element of algorithm portfolio data set.
- Modified class attributes:
- comment -- comments for the setting (list)
- algId -- algorithm name (list)
Method | __init__ |
Instantiate one algorithm portfolio data set. |
Instance Variable | alg |
Undocumented |
Instance Variable | comment |
Undocumented |
Instance Variable | dim |
Undocumented |
Instance Variable | finalfunvals |
Undocumented |
Instance Variable | func |
Undocumented |
Instance Variable | funvals |
Undocumented |
Instance Variable | instancenumbers |
Undocumented |
Instance Variable | _evals |
_evals are the central data and later accessed via the evals property. Each line _evals[i] has a (target) function value in _evals[i][0] and the function evaluation for which this target was reached the first time in trials 1,... |
Instance Variable | _maxevals |
Undocumented |
Inherited from DataSet
:
Method | __eq__ |
Compare indexEntry instances. |
Method | __ne__ |
Undocumented |
Method | __repr__ |
Undocumented |
Method | bootstrap |
return minimum size not smaller than sample_size such that modulo self.nbRuns() == 0 |
Method | compute |
Sets the attributes ert and target from the attribute evals. |
Method | consistency |
checks consistency of data set according to - number of instances - instances used |
Method | create |
Returns a dictionary of the instances. |
Method | create |
Returns a dictionary of the instances and their count. |
Method | det |
Determine the average number of f-evals for each target in targets list. |
Method | det |
Determine the expected running time (ERT) to reach target values. The value is numpy.inf, if the target was never reached. |
Method | det |
return len(targets) data rows self.evals[i, 1:]. |
Method | det |
return result of detEvals for each instance individually |
Method | det |
return the number of successful runs for each target. |
Method | det |
return a np.array with the success rate for each target in targets, easiest target first. |
Method | evals |
Return a len(targets) list of samplesize "simulated runtimes" |
Method | generate |
Determine the running lengths for reaching the target values. |
Method | get |
Undocumented |
Method | info |
print text info to stdout |
Method | info |
return print info as string |
Method | instance |
return OrderedDict of index lists for each instance. |
Method | is |
Undocumented |
Method | median |
return median for each row in self.evals , unsuccessful runs count. |
Method | m |
Returns the maximum number of function evaluations over all runs (trials), obsolete and replaced by attribute max_eval |
Method | nb |
Returns the number of runs depending on genericsettings.balance_instances . |
Method | pickle |
Save this instance to a pickle file. |
Method | plot |
plot all data from evals attribute and the median. |
Method | plot |
plot data of funvals attribute, versatile |
Method | split |
Splits the post-processed data arrays by trials. |
Method | successes |
return OrderedDict with number of successes for each instance |
Instance Variable | algs |
Undocumented |
Instance Variable | data |
Undocumented |
Instance Variable | index |
Undocumented |
Instance Variable | is |
Undocumented |
Instance Variable | pickle |
Undocumented |
Instance Variable | readfinal |
Undocumented |
Instance Variable | readmaxevals |
maxevals as read from the info files |
Instance Variable | reference |
Undocumented |
Instance Variable | success |
Undocumented |
Property | budget |
return OrderedDict of sum(maxevals) / max(1, #successes) |
Property | ert |
expected runtimes for the targets in target . |
Property | evals |
evals contains the central data, number of evaluations. |
Property | evals |
Is this abandoned? |
Property | evals |
return True if self.evals_appended consist of appended trials (same instances are appended) |
Property | instance |
number of repetitions per instance to balance a skewed instance distribution. |
Property | instancenumbers |
return instancenumbers extended with balancing_instancenumbers |
Property | max |
maximum number of function evaluations over all runs (trials), |
Property | maxevals |
maxevals per instance data, i.e. the columns of evals[:, 1:]. |
Property | maxfgevals |
maximum of the weighted f+g sum per instance. |
Property | nb |
Undocumented |
Property | number |
number of constraints of the function/problem the DataSet is based upon. |
Property | suite |
Returns a string, with the name of the DataSet's underlying test suite. |
Property | target |
target values (np.array ) corresponding to ert (which all have finite values) |
Property | trial |
return Counter dict with number of trials (actually) done for each instance |
Static Method | _largest |
return i such that isfinite(ar[i]) and not isfinite(ar[i+1]), |
Method | __parse |
Extract data from a header line in an index entry. |
Method | _argsort |
return index array for a sorted order of trials. |
Method | _balanced |
append evaluations to evals_row to achieve a balanced instance distribution. |
Method | _complement |
insert a line for each target value, never used (detEvals(targets) does the job on the fly) |
Method | _cut |
attributes target , evals , and ert are truncated to target values not much smaller than defined in attribute precision (typically 1e-8). Attribute maxevals is recomputed for columns that reach the final target precision... |
Method | _data |
return a list of targets for which ds differs from self |
Method | _det |
Determine the number of evaluations to reach target values. |
Method | _det |
computes for each data column of _evals the (maximal) evaluation until final_target was reached, or self.maxevals otherwise. |
Method | _evals |
create evals-array with appended instances. |
Method | _evals |
return simulated runtimes for each 1D-array in evals_list . |
Method | _number |
return the number of self.evals(target) that are smaller |
Method | _old |
plot data from evals attribute. |
Method | _update |
update attribute _evals_balanced if necessary. |
Method | _ |
return the number of self.evals([target]) that are better |
Class Variable | _attributes |
Undocumented |
Instance Variable | _ert |
Undocumented |
Instance Variable | _ert |
Undocumented |
Instance Variable | _evals |
Undocumented |
Instance Variable | _evals |
Undocumented |
Instance Variable | _evals |
Undocumented |
Instance Variable | _extra |
Undocumented |
Instance Variable | _lasttdatfilelines |
Undocumented |
Instance Variable | _maxevals |
Undocumented |
Instance Variable | _target |
Undocumented |
Property | _budget |
return OrderedDict of sum(maxevals) for each (raw data) instance. |
Property | _instance |
return the number of runs that repeated a previous instance. |
Property | _need |
return True of gs.balance_instances and self.instance_multipliers are >1 |
overrides
cocopp.pproc.DataSet.__init__
Instantiate one algorithm portfolio data set.
Parameters | |
dslist | Undocumented |
dict dslist | list of pproc.DataSetList
instances. |
_evals =
¶
overrides
cocopp.pproc.DataSet._evals
_evals are the central data and later accessed via the evals
property. Each line _evals[i] has a (target) function value
in _evals[i][0] and the function evaluation for which this
target was reached the first time in trials 1,... in
_evals[i][1:].