a.i.Individual(object) : class documentation

Part of ade.individual View In Hierarchy Source for individual.py Project Page for ade

Construct me with a Population object. You can set my values with a 1-D Numpy array of initial values.

I act like a sequence of values. You can iterate my values in sequence. You can access them (read/write) as items. You can even replace the whole 1-D Numpy array of them at once with another array of like dimensions, although the safest way to do that is supplying a list or 1-D array to update.

Instance Variable values A 1-D Numpy array of parameter values.
Method __init__ Undocumented
Method __repr__ Undocumented
Method spawn Undocumented
Method __getitem__ Undocumented
Method __setitem__ Undocumented
Method __iter__ Undocumented
Method __len__ Undocumented
Method __nonzero__ Undocumented
Method __eq__ Undocumented
Method equals Undocumented
Method __lt__ Undocumented
Method __gt__ Undocumented
Method __sub__ Undocumented
Method __add__ Undocumented
Method __mul__ Scales each of my values by the constant F.
Method update Undocumented
Method evaluate No summary
values =
A 1-D Numpy array of parameter values.
def __init__(self, p, values=None):
Undocumented
def __repr__(self):
Undocumented
def spawn(self, values):
Undocumented
def __getitem__(self, k):
Undocumented
def __setitem__(self, k, value):
Undocumented
def __iter__(self):
Undocumented
def __len__(self):
Undocumented
def __nonzero__(self):
Undocumented
def __eq__(self, other):
Undocumented
def equals(self, other):
Undocumented
def __lt__(self, other):
Undocumented
def __gt__(self, other):
Undocumented
def __sub__(self, other):
Undocumented
def __add__(self, other):
Undocumented
def __mul__(self, F):

Scales each of my values by the constant F.

def update(self, values):
Undocumented
def evaluate(self, xSSE=None):

Computes the sum of squared errors (SSE) from my evaluation function using my current values. Stores the result in my SSE attribute and returns a reference to me for convenience.

API Documentation for ade, generated by pydoctor at 2018-07-14 12:24:23.