Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


SDR (version 0.7.0.0)

Pop.evaluate: Evaluates the entire population for the Global Fitness computation procedure.

Description

Evaluates the entire population for the Global Fitness computation procedure.

Usage

Pop.evaluate(pop, dataset, examplesNoClass, exampleClass, frm, categorical, numerical, t_norm, weights)

Arguments

pop
A list of 'Rule' objects.
dataset
A 'keel' object with all the information of the dataset we are working
examplesNoClass
Matrix with the data of the dataset, one colum per rule. The data must not contain the last column, the class. (use .separar for this task and convert the list into a matrix)
exampleClass
Vector with the classes of all examples of the dataset
frm
An integer specifing the tipo of fuzzy reasoning method to use. 0 for Winning Rule, 1 for Normalized Sum and 2 for Arithmetic Mean.
categorical
A logical vector indicating which attributes of the dataset are categorical.
numerical
A logical vector indicating which attributes of the dataset are numerical.
t_norm
An integer specifying the t-norm to use. 0 for minimum t_norm, other value for product t-norm.
weights
A numeric vector of length 4 indicating the weights used to calculate the global fitness of this population.

Value

A number which indicate the global fitness for this population.