Evolife
Evolife has been developed to study Genetic algorithms, Natural evolution and behavioural ecology.
|
Meta storage: stores several lower-level examiners having same slots and performs weighted statistics for each slot. More...
Public Member Functions | |
def | __init__ (self, Name='') |
Defines a storage that will contain various examiners (which are dicts of storages) All examiners are supposed to have the same slots (low-level storages) More... | |
def | statistics (self) |
gathers data from the stored examiners and stores them as a dictionary of tuples (a tuple per slot) (number_of_instances, best_of_each_coordinate, average_of_each_coordinate, list_of_instances) More... | |
def | get_data (self, Slot) |
Performs statistics on storage 'Slot'. More... | |
Public Member Functions inherited from Evolife.Ecology.Observer.Storage | |
def | __init__ (self, Name) |
calls reset More... | |
def | reset (self, length=-1) |
initializes the 'storage', 'average' and 'best' lists More... | |
def | open_ (self, length=-1) |
marks the storage as 'open' More... | |
def | store (self, vector) |
stores a vecor in the storage More... | |
def | statistics (self) |
to be overloaded More... | |
def | close_ (self) |
sets the storage as 'closed' More... | |
def | get_data (self) |
returns a tuple of all the vectors in the storage More... | |
Public Attributes | |
Statistics | |
Public Attributes inherited from Evolife.Ecology.Observer.Storage | |
Name | |
open | |
storage | |
average | |
best | |
length | |
itemLength | |
Meta storage: stores several lower-level examiners having same slots and performs weighted statistics for each slot.
Definition at line 273 of file Observer.py.
def Evolife.Ecology.Observer.Meta_Examiner.__init__ | ( | self, | |
Name = '' |
|||
) |
Defines a storage that will contain various examiners (which are dicts of storages) All examiners are supposed to have the same slots (low-level storages)
Reimplemented from Evolife.Ecology.Observer.Storage.
Reimplemented in Evolife.Ecology.Observer.EvolifeObserver, and Evolife.Ecology.Observer.Observer.
Definition at line 278 of file Observer.py.
def Evolife.Ecology.Observer.Meta_Examiner.get_data | ( | self, | |
Slot | |||
) |
Performs statistics on storage 'Slot'.
Reimplemented from Evolife.Ecology.Observer.Storage.
Reimplemented in Evolife.Ecology.Observer.Observer.
Definition at line 315 of file Observer.py.
def Evolife.Ecology.Observer.Meta_Examiner.statistics | ( | self | ) |
gathers data from the stored examiners and stores them as a dictionary of tuples (a tuple per slot) (number_of_instances, best_of_each_coordinate, average_of_each_coordinate, list_of_instances)
Reimplemented from Evolife.Ecology.Observer.Storage.
Definition at line 285 of file Observer.py.
Evolife.Ecology.Observer.Meta_Examiner.Statistics |
Definition at line 283 of file Observer.py.