public class ICPLGenerator extends PrototypeGenerator
Modifier and Type | Field and Description |
---|---|
protected int |
numberOfClass |
protected int |
numberOfPrototypes |
algorithmName, generatedDataSet, SEED, seedDefaultValueList, trainingDataSet
Constructor and Description |
---|
ICPLGenerator(PrototypeSet _trainingDataSet,
int nalg,
java.lang.String Method,
int k,
int Q)
Build a new ICPLGenerator Algorithm
|
ICPLGenerator(PrototypeSet t,
Parameters parameters)
Build a new RSPGenerator Algorithm
|
Modifier and Type | Method and Description |
---|---|
protected PrototypeSet |
ACC(PrototypeSet T)
Retaining Center Instances
|
protected PrototypeSet |
associatesPrototype(PrototypeSet one,
Prototype other)
Return all the prototype in (this) that has other like the nearest neighbor
|
protected PrototypeSet |
ENN(PrototypeSet T)
Edited nearest neighbor of T.
|
protected PrototypeSet |
filtering()
Method to call the appropriate method
|
protected PrototypeSet |
icpl1_or_3(int num)
ICPL1_Pseudo-code:
ICPL1( T training)
1) C1= abstraccion T
2) C2 = Filtrar T.
3) S = C1
4) Para cada prototipo P en C2
Tmp = S U P.
|
protected PrototypeSet |
icpl2_or_4(int num)
ICPL2 - pseudo-code
ICPL2( T training)
1) C1= abstraccion T
2) C2 = Filtrar T.
3) S = C1
4) Para cada prototipo P en C2
Tmp = S U P.
|
protected boolean[] |
identifyBorder(PrototypeSet[] pClass)
Identify a border by typicaly.
|
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.
|
protected Prototype |
Merge(PrototypeSet S,
boolean[] borders,
Prototype I,
PrototypeSet merge)
Merge
|
PrototypeSet |
reduceSet()
Makes the trivial reduction.
|
protected PrototypeSet |
RT2(PrototypeSet T)
Retaining Border instances
|
protected PrototypeSet |
TPA()
TPA.
|
protected double |
typicality(int index) |
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 numberOfPrototypes
protected int numberOfClass
public ICPLGenerator(PrototypeSet _trainingDataSet, int nalg, java.lang.String Method, int k, int Q)
public ICPLGenerator(PrototypeSet t, Parameters parameters)
t
- Original prototype set to be reduced.parameters
- Parameters of the algorithm (only % of reduced set).protected PrototypeSet icpl1_or_3(int num)
protected PrototypeSet icpl2_or_4(int num)
protected double typicality(int index)
index
- protected boolean[] identifyBorder(PrototypeSet[] pClass)
protected PrototypeSet TPA()
protected Prototype Merge(PrototypeSet S, boolean[] borders, Prototype I, PrototypeSet merge)
S
- borders
- I
- protected PrototypeSet filtering()
protected PrototypeSet ENN(PrototypeSet T)
protected PrototypeSet ACC(PrototypeSet T)
T
- protected PrototypeSet associatesPrototype(PrototypeSet one, Prototype other)
protected PrototypeSet RT2(PrototypeSet T)
T
- public PrototypeSet reduceSet()
PrototypeGenerator
reduceSet
in class PrototypeGenerator
public static void main(java.lang.String[] args)
args
- Arguments of the main function.