public class ChenGenerator extends PrototypeGenerator
Modifier and Type | Field and Description |
---|---|
protected int |
numberOfPrototypes
Number of prototypes to be generated.
|
algorithmName, generatedDataSet, SEED, seedDefaultValueList, trainingDataSet
Constructor and Description |
---|
ChenGenerator(PrototypeSet t,
double percSet)
Build a new ChenGenerator Algorithm
|
ChenGenerator(PrototypeSet t,
int n_d)
Build a new ChenGenerator Algorithm
|
ChenGenerator(PrototypeSet t,
Parameters params)
Build a new ChenGenerator Algorithm
|
Modifier and Type | Method and Description |
---|---|
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 wich contains the test data set.
3: Seed of the random number generator.
4: Number of prototypes to be generated.
|
PrototypeSet |
reduceSet()
Generate a reduced prototype set by the ChenGenerator method.
|
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
public ChenGenerator(PrototypeSet t, int n_d)
t
- Original prototype set to be reduced.n_d
- Number of prototypes to be generated.public ChenGenerator(PrototypeSet t, double percSet)
t
- Original prototype set to be reduced.percSet
- Reduction percentage of the prototype set.public ChenGenerator(PrototypeSet t, Parameters params)
t
- Original prototype set to be reduced.params
- Parameters of the algorithm (only % of reduced set).public PrototypeSet reduceSet()
reduceSet
in class PrototypeGenerator
public static void main(java.lang.String[] args)
args
- Arguments of the main function.