gpalta.clustering
Class FitnessClusteringGroupFuzzy

java.lang.Object
  extended by gpalta.clustering.FitnessClusteringGroup
      extended by gpalta.clustering.FitnessClusteringGroupFuzzy
All Implemented Interfaces:
Fitness

public class FitnessClusteringGroupFuzzy
extends FitnessClusteringGroup

Created by IntelliJ IDEA. User: neven Date: 07-07-2006 Time: 05:24:08 PM To change this template use File | Settings | File Templates.


Field Summary
 
Fields inherited from class gpalta.clustering.FitnessClusteringGroup
config, m, prob, prototypes
 
Constructor Summary
FitnessClusteringGroupFuzzy()
           
 
Method Summary
 void calculate(Output outputs, Individual ind, TempOutputFactory tempOutputFactory, DataHolder data)
          Evaluates the tree in every sample, and then calculates its fitness (and maybe some other stats, like hr0 and hr1 for classifiers), recording them in the tree.
 void init(Config config, DataHolder data, Output desiredOutputs, double[] weights)
          Initializes the Fitness, receiving the desired outputs and the wheights (importance) for each sample.
 
Methods inherited from class gpalta.clustering.FitnessClusteringGroup
calcProto, getProcessedOutput, init, penalizedFitness
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FitnessClusteringGroupFuzzy

public FitnessClusteringGroupFuzzy()
Method Detail

calculate

public void calculate(Output outputs,
                      Individual ind,
                      TempOutputFactory tempOutputFactory,
                      DataHolder data)
Description copied from interface: Fitness
Evaluates the tree in every sample, and then calculates its fitness (and maybe some other stats, like hr0 and hr1 for classifiers), recording them in the tree.

Specified by:
calculate in interface Fitness
Overrides:
calculate in class FitnessClusteringGroup

init

public void init(Config config,
                 DataHolder data,
                 Output desiredOutputs,
                 double[] weights)
Description copied from interface: Fitness
Initializes the Fitness, receiving the desired outputs and the wheights (importance) for each sample.

Specified by:
init in interface Fitness
Overrides:
init in class FitnessClusteringGroup
Parameters:
config - The evolution config, might be needed inside the Fitness
data - The current problem's data, might also be needed (for instance to know the number of samples used)
desiredOutputs - The desired outputs
weights - The weight (importance) of each sample