class documentation
class LowEffectiveDimension(ComposedFunction):
Constructor: LowEffectiveDimension(f, effective_dimensions)
Evaluate a function only in a lower dimensional subspace.
effective_dimensions = 0.1 can be an int (number of effective
variables) or a ratio <= 1 (-> max(1, int(ratio * len(x)))) or an index
array. In the former two cases, the first variables are effective.
See also NeutralVariables for the case when the dimension affects the
underlying function definition.
Caveat: this has never been thoroughly tested.
>>> from cma import fitness_transformations as ft >>> fun = ft.LowEffectiveDimension(cma.ff.sphere) >>> 1**2 + 2**2 == fun(range(1, 21)) True
| Method | __init__ |
effective_dimensions can be an int or a ratio or and index array. |
| Instance Variable | _select |
Undocumented |
Inherited from ComposedFunction:
| Method | __call__ |
Undocumented |
| Method | inverse |
evaluate the composition of inverses on x. |
| Instance Variable | list |
Undocumented |
Inherited from Function (via ComposedFunction):
| Method | initialize |
initialization of Function |
| Instance Variable | evaluations |
Undocumented |
| Instance Variable | ftarget |
Undocumented |
| Instance Variable | target |
Undocumented |
| Property | function |
attributes which are searched for to be called if no function was given to __init__. |
| Class Variable | _function |
Undocumented |
| Instance Variable | __callable |
Undocumented |
| Instance Variable | __initialized |
Undocumented |