Module cma :: Class FFWrapper :: Class BookKeeping
[hide private]
[frames] | no frames]

Class BookKeeping

source code

                     object --+    
                              |    
FFWrapper.FitnessTransformation --+
                                  |
                                 FFWrapper.BookKeeping

a stump for experimenting with use-cases and possible extensions of book keeping

use-case:

f = BookKeeping(f) print(f.count_evaluations)
Instance Methods [hide private]
 
__init__(self, callable=None)
fitness_function must be callable (e.g. a function or a callable class instance)
source code
 
__call__(self, *args)
identity as default transformation
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, callable=None)
(Constructor)

source code 
fitness_function must be callable (e.g. a function or a callable class instance)
Overrides: object.__init__
(inherited documentation)

__call__(self, *args)
(Call operator)

source code 
identity as default transformation
Overrides: FitnessTransformation.__call__
(inherited documentation)