gpalta.clustering
Class FitnessClusteringGroupGaussMix

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

public class FitnessClusteringGroupGaussMix
extends java.lang.Object
implements Fitness

Created by IntelliJ IDEA. User: nvn Date: 04-08-2006 Time: 10:03:32 PM To change this template use File | Settings | File Templates.


Constructor Summary
FitnessClusteringGroupGaussMix()
           
 
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.
 Output getProcessedOutput(Output raw, Individual ind, TempOutputFactory tempOutputFactory, DataHolder data)
           
 void init(Config config, DataHolder data, Output desiredOutputs, double[] weights)
          Initializes the Fitness, receiving the desired outputs and the wheights (importance) for each sample.
 void init(Config config, DataHolder data, java.lang.String fileName)
          Initializes the Fitness, reading desired outputs from file
protected  double penalizedFitness(double fitness, int depth)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FitnessClusteringGroupGaussMix

public FitnessClusteringGroupGaussMix()
Method Detail

init

public void init(Config config,
                 DataHolder data,
                 java.lang.String fileName)
Description copied from interface: Fitness
Initializes the Fitness, reading desired outputs from file

Specified by:
init in interface Fitness
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 numer of samples used)
fileName - The file to read

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
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

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

penalizedFitness

protected double penalizedFitness(double fitness,
                                  int depth)

getProcessedOutput

public Output getProcessedOutput(Output raw,
                                 Individual ind,
                                 TempOutputFactory tempOutputFactory,
                                 DataHolder data)
Specified by:
getProcessedOutput in interface Fitness