module documentation
Tools for (lean) experimentation and collecting data.
See also cma.optimization_tools and cma.utilities.math.test*.
TODO: write some running examples as doctests.
| Class | |
set class attributes from a dict, see also cma.utilities.utils.DictClass2 |
| Class | |
A (default) dictionary like parameter_value: list_of_measures, |
| Class | |
a container to communicate (changing) results via disk. |
| Class | |
WIP ad hoc code for writing (changing) results in a pandas.DataFrame and to disk, |
| Class | |
context manager to print the time spent iff it exceeds a threshold. |
| Function | copy |
copy src to dest and created dest folder(s) if necessary |
| Function | down |
return (index, x_down) if y is None, else (x_down, y_down). |
| Function | sp1 |
return the average of finite entries in data, |
| Function | unique |
a unique timestamp up to 1/10^decimals seconds |
return the average of finite entries in data,
multiplied by the ratio Ndata / Nfinite == len(data) / sum(np.isfinite(data)).
This measure has been called Q-measure or success performance one, sp1. It is computed as the average over all finite entries times the number of all entries divided by the number of finite entries. If all entries are finite this is the average value.
Details: the multiplier operates under the assumption that non-finite entries contribute the same as the average finite entry and resampling can be applied to get a finite entry.