public class AVQGenerator extends PrototypeGenerator
Modifier and Type | Field and Description |
---|---|
protected int |
numberOfIterations
Number of iterations of the AVQGenerator.
|
protected double |
percentageInitPartition
Percentage of the original set used in the initial partition.
|
protected PrototypeSet |
reduced
Reduced data set.
|
protected PrototypeSet |
T
Partition of the training data set used as training.
|
protected PrototypeSet |
V
Partition of the training data set used as validation set.
|
algorithmName, generatedDataSet, SEED, seedDefaultValueList, trainingDataSet
Constructor and Description |
---|
AVQGenerator(PrototypeSet tDataSet,
double percentPart,
int numIterations,
double epsilonLBG)
Constructor of the AVQGenerator.
|
AVQGenerator(PrototypeSet tDataSet,
Parameters parameters)
Constructor of the AVQGenerator.
|
Modifier and Type | Method and Description |
---|---|
protected static int |
countPrototypesWhichNearestIs(Prototype center,
PrototypeSet set)
Count prototypes whose nearest prototype is the given.
|
protected int |
incorrectlyClassifiedSamples(Cluster c)
Performs Q - R for a cluster.
|
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
2: Seed of the random generator.
3: Number of prototypes to be generated.
|
protected int |
Q(PrototypeSet reduced,
Prototype center)
Generate the Q-count: prototypes which its nearest is the center of the cluster, and not any of the other reduced-prototypes.
|
protected int |
R(Cluster c)
Generate the R-count: prototypes which its centroid is its nearest prototypes.
|
PrototypeSet |
reduceSet()
Reduce the data set by the AVQGenerator 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 PrototypeSet T
protected PrototypeSet V
protected PrototypeSet reduced
protected double percentageInitPartition
protected int numberOfIterations
public AVQGenerator(PrototypeSet tDataSet, Parameters parameters)
tDataSet
- Training data set.parameters
- Parameters of the algorithm.public AVQGenerator(PrototypeSet tDataSet, double percentPart, int numIterations, double epsilonLBG)
tDataSet
- Training data set.percentPart
- Percentage of the first set in the initial partition of training data set.numIterations
- Number of iterations of the method.epsilonLBG
- Epsilon parameter of the LBG.protected static int countPrototypesWhichNearestIs(Prototype center, PrototypeSet set)
center
- Given prototype.set
- Set to be tested.protected int R(Cluster c)
c
- Cluster to be examinated.protected int Q(PrototypeSet reduced, Prototype center)
reduced
- Reduced data set.center
- Center of the prototype set.protected int incorrectlyClassifiedSamples(Cluster c)
c
- Cluster to be computed Q - R.public PrototypeSet reduceSet()
reduceSet
in class PrototypeGenerator
public static void main(java.lang.String[] args)
args
- Arguments of the main function.