|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgpalta.clustering.FitnessGroup
gpalta.clustering.FitnessClusteringGroupMutInf
public class FitnessClusteringGroupMutInf
Created by IntelliJ IDEA. User: nvn Date: 02-08-2006 Time: 10:57:45 PM To change this template use File | Settings | File Templates.
Constructor Summary | |
---|---|
FitnessClusteringGroupMutInf()
|
Method Summary | |
---|---|
void |
calculate(Output outputs,
Individual ind,
TempOutputFactory tempOutputFactory,
DataHolder data)
Evaluates the individual for every sample, and then calculates its fitness. |
Output |
getProcessedOutput(Output raw,
Individual ind,
TempOutputFactory tempOutputFactory,
DataHolder data)
Get the output of the individual for every sample, plus anything the fitness might need to add, like statistics or aditional calculations related to the fitness. |
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 |
double |
mutualInformation(double[] px,
double[] py,
double[][] pxy)
|
Methods inherited from class gpalta.clustering.FitnessGroup |
---|
assignFitness, penalizedFitness |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FitnessClusteringGroupMutInf()
Method Detail |
---|
public void init(Config config, DataHolder data, java.lang.String fileName)
Fitness
config
- The evolution config, might be needed inside the Fitnessdata
- The current problem's data, might also be needed (for instance to know the
numer of samples used)fileName
- The file to readpublic void init(Config config, DataHolder data, Output desiredOutputs, double[] weights)
Fitness
config
- The evolution config, might be needed inside the Fitnessdata
- The current problem's data, might also be needed (for instance to know
the number of samples used)desiredOutputs
- The desired outputsweights
- The weight (importance) of each samplepublic void calculate(Output outputs, Individual ind, TempOutputFactory tempOutputFactory, DataHolder data)
Fitness
public double mutualInformation(double[] px, double[] py, double[][] pxy)
public Output getProcessedOutput(Output raw, Individual ind, TempOutputFactory tempOutputFactory, DataHolder data)
Fitness
raw
- The "raw" output of the individualind
- The individual to evaluatedata
- The data to evaluate on
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |