public class POCGenerator extends PrototypeGenerator
| Modifier and Type | Field and Description |
|---|---|
protected int |
numberOfClass |
protected int |
numberOfPrototypes |
algorithmName, generatedDataSet, SEED, seedDefaultValueList, trainingDataSet| Constructor and Description |
|---|
POCGenerator(PrototypeSet _trainingDataSet,
double ratio,
java.lang.String Method)
Build a new POCGenerator Algorithm
|
POCGenerator(PrototypeSet t,
Parameters parameters)
Build a new RSPGenerator Algorithm
|
| Modifier and Type | Method and Description |
|---|---|
protected Pair<Prototype,Prototype> |
finding_poc_nn(PrototypeSet S,
double class1,
double class2)
S is a training set of n pattern composed of TWO subsets, S1 y S2, with n1,n2 sizes,
|
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.
|
PrototypeSet |
reduceSet()
Makes the trivial reduction.
|
protected PrototypeSet |
replacing_poc_nn(PrototypeSet S,
double class1,
double class2) |
protected PrototypeSet |
selecting_poc_nn(PrototypeSet S,
double class1,
double class2)
Prototype Selection by Poc-NN algorithm for TWO class classification problem.
|
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, showResultsOfAccuracyprotected int numberOfPrototypes
protected int numberOfClass
public POCGenerator(PrototypeSet _trainingDataSet, double ratio, java.lang.String Method)
public POCGenerator(PrototypeSet t, Parameters parameters)
t - Original prototype set to be reduced.parameters - Parameters of the algorithm (only % of reduced set).protected Pair<Prototype,Prototype> finding_poc_nn(PrototypeSet S, double class1, double class2)
S - protected PrototypeSet selecting_poc_nn(PrototypeSet S, double class1, double class2)
S - protected PrototypeSet replacing_poc_nn(PrototypeSet S, double class1, double class2)
public PrototypeSet reduceSet()
PrototypeGeneratorreduceSet in class PrototypeGeneratorpublic static void main(java.lang.String[] args)
args - Arguments of the main function.