Modifier and Type | Field and Description |
---|---|
double |
DEFAULT_WINDOW_WIDTH
Default value of the window width parameter
|
protected double |
windowLowerBound
Window width lower bound
|
protected double |
windowWidth
Window width parameter
|
alpha_0, ALPHA_DEFAULT_VALUE, chosenRandomIndex, IALPHA, randomIndexes
initial, initialset, iterations, numberOfPrototypesGenerated
algorithmName, generatedDataSet, SEED, seedDefaultValueList, trainingDataSet
Constructor and Description |
---|
LVQ2(PrototypeSet traDataSet,
int it,
double pcNProt,
double alpha_0,
double windowWidth)
Constructs a new LVQ2 algorithm.
|
LVQ2(PrototypeSet traDataSet,
int it,
int nProt,
double alpha_0,
double windowWidth)
Constructs a new LVQ2 algorithm.
|
LVQ2(PrototypeSet traDataSet,
Parameters par)
Constructs a new LVQ2 algorithm.
|
LVQ2(PrototypeSet InitialSet,
PrototypeSet traDataSet,
int it,
int nProt,
double alpha_0,
double windowWidth)
WITH INITIAL CODE-BOOKS
Constructs a new LVQ2 algorithm.
|
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 will contain the test data set
3: k Number of neighbors used in the KNN function
|
extract, initDataSet, initDataSetRandomMode, penalize, reward
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 final double DEFAULT_WINDOW_WIDTH
protected double windowWidth
protected double windowLowerBound
public LVQ2(PrototypeSet traDataSet, int it, int nProt, double alpha_0, double windowWidth)
traDataSet
- Training data prototypesit
- Number of iterations that will execute the algorithm.nProt
- Number of prototypes to be returned.alpha_0
- Alpha algorithm parameter.windowWidth
- Window width parameter.public LVQ2(PrototypeSet InitialSet, PrototypeSet traDataSet, int it, int nProt, double alpha_0, double windowWidth)
InitialSet
- Initial dataset.traDataSet
- Training data prototypesit
- Number of iterations that will execute the algorithm.nProt
- Number of prototypes to be returned.alpha_0
- Alpha algorithm parameter.windowWidth
- Window width parameter.public LVQ2(PrototypeSet traDataSet, int it, double pcNProt, double alpha_0, double windowWidth)
traDataSet
- Training data prototypesit
- Number of iterations that will execute the algorithm.pcNProt
- Number of prototypes to be returned expressed as % of training size.alpha_0
- Alpha algorithm parameter.windowWidth
- Window width parameter.public LVQ2(PrototypeSet traDataSet, Parameters par)
traDataSet
- Training data prototypespar
- Parameters of the algorithm.protected void correct(Prototype i, PrototypeSet tData)
public static void main(java.lang.String[] args)
args
- Arguments of the main function.