class documentation

class EvaluationManager:

View In Hierarchy

Manage incremental evaluation of a population of solutions.

Evaluate solutions, add them to the model and keep track of which solutions were evaluated.

Uses model.add_data_row and model.eval.

Details: for simplicity and avoiding the copy construction, we do not inherit from list. Hence we use self.X instead of self.

Method __init__ all is based on the population (list of solutions) X
Method __len__ should replace len(self.X) etc, not fully in use yet
Method add_eval add fitness(self.X[i]), not in use
Method eval add fitness(self.X[i]) to model data, mainly for internal use
Method eval_sequence evaluate unevaluated entries of X[idx] until number entries are evaluated overall.
Method surrogate_values return surrogate values of model_eval with smart offset.
Instance Variable evaluated Undocumented
Instance Variable fvalues Undocumented
Instance Variable last_evaluations Undocumented
Instance Variable X Undocumented
Property evaluation_fraction Undocumented
Property evaluations Undocumented
Property remaining number of not yet evaluated solutions
def __init__(self, X):

all is based on the population (list of solutions) X

def __len__(self):

should replace len(self.X) etc, not fully in use yet

def add_eval(self, i, fval):

add fitness(self.X[i]), not in use

def eval(self, i, fitness, model_add):

add fitness(self.X[i]) to model data, mainly for internal use

def eval_sequence(self, number, fitness, model_add, idx=None):

evaluate unevaluated entries of X[idx] until number entries are evaluated overall.

Assumes that sorted(idx) == list(range(len(self.X))).

idx defines the evaluation sequence.

The post condition is self.evaluations == min(number, len(self.X)).

def surrogate_values(self, model_eval, true_values_if_all_available=True, f_offset=None):

return surrogate values of model_eval with smart offset.

evaluated =

Undocumented

fvalues =

Undocumented

last_evaluations =

Undocumented

X =

Undocumented

@property
evaluation_fraction =

Undocumented

@property
evaluations =

Undocumented

@property
remaining =

number of not yet evaluated solutions