Utils

modcma.utils Module

Implementation of various utilities used in ModularCMA-ES package.

Functions

ert(evals, budget)

Computed the expected running time of a list of evaluations.

timeit(func)

Decorator function for timing the excecution of a function.

Classes

AnnotatedStruct(*args, **kwargs)

Custom class for defining structs.

AnnotatedStructMeta(name, bases, attrs)

Metaclass for class for AnnotatedStruct.

AnyOf([options])

Descriptor, checks of value is Any of a specified sequence of options.

Descriptor()

Data descriptor.

InstanceOf(dtype)

Data descriptor checks for correct types.

Class Inheritance Diagram

Inheritance diagram of modcma.utils.AnnotatedStruct, modcma.utils.AnnotatedStructMeta, modcma.utils.AnyOf, modcma.utils.Descriptor, modcma.utils.InstanceOf