public class GENNGenerator extends PrototypeGenerator
Modifier and Type | Field and Description |
---|---|
protected int |
k
Number of neighbors selected in the underlying KNN.
|
algorithmName, generatedDataSet, SEED, seedDefaultValueList, trainingDataSet
Constructor and Description |
---|
GENNGenerator(PrototypeSet tr,
int k)
Constructor of GENNGenerator objects.
|
GENNGenerator(PrototypeSet tr,
Parameters param)
Constructor of GENNGenerator objects.
|
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args)
General main for GENNGenerator prototoype generators
Arguments:
0: Filename with the training data set to be condensed.
1: Filename wich contains the test data set.
2: Seed used in the random generator.
3: k (size of neighborhood in KNN).
|
protected boolean |
majorityOfSameClass(Prototype current,
PrototypeSet protSet)
Informs if there are a majority of prototypes whose class is the same as other prototype.
|
PrototypeSet |
reduceSet()
Reduce the set by the GENNGenerator 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
public GENNGenerator(PrototypeSet tr, int k)
tr
- Training Data Set.k
- Number of neighbors selected in the underlying KNNpublic GENNGenerator(PrototypeSet tr, Parameters param)
tr
- Training Data Set.param
- Parameters needed of GENNGenerator.protected boolean majorityOfSameClass(Prototype current, PrototypeSet protSet)
current
- Prototype which class is used.protSet
- Set which the search will be performed.public PrototypeSet reduceSet()
reduceSet
in class PrototypeGenerator
public static void main(java.lang.String[] args)
args
- Arguments of the main function.