public class PSCSAGenerator extends PrototypeGenerator
Modifier and Type | Field and Description |
---|---|
protected int |
numberOfClass |
protected int |
numberOfPrototypes |
algorithmName, generatedDataSet, SEED, seedDefaultValueList, trainingDataSet
Constructor and Description |
---|
PSCSAGenerator(PrototypeSet _trainingDataSet,
int neigbors,
int poblacion,
int perc,
int iteraciones,
double F,
double CR,
int strg)
Build a new PSCSAGenerator Algorithm
|
PSCSAGenerator(PrototypeSet t,
Parameters parameters)
Build a new PSCSAGenerator Algorithm
|
Modifier and Type | Method and Description |
---|---|
Pair<java.lang.String[][],double[]> |
HyperMutation(java.lang.String[] mmatch,
double classMatch,
java.lang.String[] agk,
double classAgk,
int proliferation)
PROLIFERATION-I: HyperMutacion of the m match.
|
static void |
main(java.lang.String[] args)
General main for all the prototoype generators
Arguments:
0: Filename with the training data set to be condensed.
1: Filename which contains the test data set.
3: Seed of the random number generator.
|
Pair<java.lang.String[],java.lang.Boolean> |
mutate(java.lang.String[] Mmatch,
java.lang.String[] agk,
double claseBj)
Production of mutated clones
|
PrototypeSet |
reduceSet()
Generate a reduced prototype set by the PSCSAGenerator method.
|
Pair<java.lang.String[][],double[]> |
ResourceAllocation(java.lang.String[][] B,
double[] clasesB,
java.lang.String[] agk,
double claseAgk)
To minimize the computaional cost in generation clones
|
double |
stim(Prototype agi,
Prototype mj)
Stim function.
|
double |
stimString(java.lang.String[][] binario,
int index,
java.lang.String[][] binarioTrain,
int pIndex)
Stim for binary codification
|
double |
stimString2(java.lang.String[] binario,
java.lang.String[] binarioTrain)
Stim for binary codification
|
Pair<java.lang.String[][],double[]> |
UpdateMemory(java.lang.String[][] binario,
double[] binarioClass,
int matchIndex,
java.lang.String[] Antigen,
double claseAntigen,
java.lang.String[] most,
double mostC,
java.lang.String[] Match,
double claseMatch)
Update of immne Memory
|
absoluteAccuracy, absoluteAccuracyAndError, absoluteAccuracyKNN, accuracy, accuracy2, desordenar_vector_sin, desordenar_vector, execute, generateReducedDataSet, getResultingAccuracy, getResultingAccuracy, getResults, getResultsOfAccuracy, getResultsOfAccuracy, getSeed, getSetSizeFromPercentage, getSetSizeFromPercentage, getTime, inic_vector_sin, inic_vector, saveResultsOfAccuracyIn, saveResultsOfAccuracyIn, selecRandomSet, setSeed, showResultsOfAccuracy, showResultsOfAccuracy
protected int numberOfClass
protected int numberOfPrototypes
public PSCSAGenerator(PrototypeSet _trainingDataSet, int neigbors, int poblacion, int perc, int iteraciones, double F, double CR, int strg)
public PSCSAGenerator(PrototypeSet t, Parameters parameters)
t
- Original prototype set to be reduced.parameters
- Parameters of the algorithm (only % of reduced set).public double stimString(java.lang.String[][] binario, int index, java.lang.String[][] binarioTrain, int pIndex)
public double stimString2(java.lang.String[] binario, java.lang.String[] binarioTrain)
public double stim(Prototype agi, Prototype mj)
public Pair<java.lang.String[][],double[]> HyperMutation(java.lang.String[] mmatch, double classMatch, java.lang.String[] agk, double classAgk, int proliferation)
public Pair<java.lang.String[],java.lang.Boolean> mutate(java.lang.String[] Mmatch, java.lang.String[] agk, double claseBj)
public Pair<java.lang.String[][],double[]> ResourceAllocation(java.lang.String[][] B, double[] clasesB, java.lang.String[] agk, double claseAgk)
public Pair<java.lang.String[][],double[]> UpdateMemory(java.lang.String[][] binario, double[] binarioClass, int matchIndex, java.lang.String[] Antigen, double claseAntigen, java.lang.String[] most, double mostC, java.lang.String[] Match, double claseMatch)
public PrototypeSet reduceSet()
reduceSet
in class PrototypeGenerator
public static void main(java.lang.String[] args)
args
- Arguments of the main function.