public class DSMGenerator extends LVQ1
alpha_0, ALPHA_DEFAULT_VALUE, chosenRandomIndex, IALPHA, randomIndexes
initial, initialset, iterations, numberOfPrototypesGenerated
algorithmName, generatedDataSet, SEED, seedDefaultValueList, trainingDataSet
Constructor and Description |
---|
DSMGenerator(PrototypeSet tDataSet,
int nIter,
double percSize,
double alpha_0)
DSMGenerator constructor.
|
DSMGenerator(PrototypeSet tDataSet,
int nIter,
int nProt,
double alpha_0)
DSMGenerator constructor.
|
DSMGenerator(PrototypeSet tDataSet,
Parameters param)
DSMGenerator constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
correct(Prototype i,
PrototypeSet tData)
Corrects the instance using a particular 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 contains the test data set.
3: Number of iterations.
4: Number of prototypes to be generated.
5: Alpha constant parameter.
|
protected void |
penalize(Prototype m,
Prototype x)
Applies a DSMGenerator-reward to prototype m.
|
protected void |
reward(Prototype m,
Prototype x)
Applies a DSMGenerator-reward to prototype m.
|
extract, initDataSet, initDataSetRandomMode
reduceSet
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 DSMGenerator(PrototypeSet tDataSet, int nIter, int nProt, double alpha_0)
tDataSet
- Training data set to be reduced.nIter
- Number of iterations to be executed.nProt
- Number of prototypes to be generated.alpha_0
- Alpha0 constant parameter of the algorithm.public DSMGenerator(PrototypeSet tDataSet, int nIter, double percSize, double alpha_0)
tDataSet
- Training data set to be reduced.nIter
- Number of iterations to be executed.percSize
- Reduced size respect training set size.alpha_0
- Alpha0 constant parameter of the algorithm.public DSMGenerator(PrototypeSet tDataSet, Parameters param)
tDataSet
- Training data set to be reduced.param
- Parameters of the algorithm (number of iterations and prototypes, alpha0).protected void reward(Prototype m, Prototype x)
protected void penalize(Prototype m, Prototype x)
protected void correct(Prototype i, PrototypeSet tData)
public static void main(java.lang.String[] args)
args
- Arguments of the main function.