|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgpalta.clustering.FitnessClusteringFuzzy
public class FitnessClusteringFuzzy
Field Summary | |
---|---|
double[] |
classCenters
|
double[][] |
prob
|
double[][] |
prototypes
|
Constructor Summary | |
---|---|
FitnessClusteringFuzzy()
|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public double[][] prototypes
public double[] classCenters
public double[][] prob
Constructor Detail |
---|
public FitnessClusteringFuzzy()
Method Detail |
---|
public void init(Config config, DataHolder data, java.lang.String fileName)
Fitness
init
in interface 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
init
in interface 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
calculate
in interface Fitness
public Output getProcessedOutput(Output raw, Individual ind, TempOutputFactory tempOutputFactory, DataHolder data)
getProcessedOutput
in interface Fitness
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |