public class GMCAGenerator extends MCAGenerator
currentAccuracy
numberOfPrototypes, useNumberOfPrototypes
algorithmName, generatedDataSet, SEED, seedDefaultValueList, trainingDataSet
Constructor and Description |
---|
GMCAGenerator(PrototypeSet _trainingDataSet)
Basic constructor
|
GMCAGenerator(PrototypeSet _trainingDataSet,
Parameters parameters)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected static double |
d(Prototype a,
Prototype b)
Computes the distances between the two given prototypes.
|
protected void |
initClusters(PrototypeSet T)
Initializes the clusters for the given prototype set.
|
protected boolean |
isConsistent(Cluster mix,
PrototypeSet modified)
Checks if the given cluster is consistent with the modified prototypeset.
|
protected boolean |
isPrototypeConsistent(PrototypeSet modified)
Hard-checking consistency method.
|
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 will contain the test data set
3: k Number of neighbors used in the KNN function
|
PrototypeSet |
reduceSet()
Reduce the set by the MCAGenerator method.
|
isConsistent, makeAveragePrototype, removeFromCandidates
controlledReduction, maximumReduction, nearestPrototypesIn
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 GMCAGenerator(PrototypeSet _trainingDataSet)
_trainingDataSet
- Prototype training data set.public GMCAGenerator(PrototypeSet _trainingDataSet, Parameters parameters)
_trainingDataSet
- Prototype training data set.parameters
- Parameters of the method.protected void initClusters(PrototypeSet T)
T
- given prototype set.protected boolean isPrototypeConsistent(PrototypeSet modified)
modified
- Set to be tested its consistecy.protected static double d(Prototype a, Prototype b)
a
- first prototype.b
- second prototype.protected boolean isConsistent(Cluster mix, PrototypeSet modified)
mix
- given cluster to check.modified
- modified prototype set.public PrototypeSet reduceSet()
MCAGenerator
reduceSet
in class MCAGenerator
public static void main(java.lang.String[] args)
args
- Arguments of the main function.