public abstract class LVQGenerator extends PrototypeGenerator
LVQGenerator
Abstract class parent of every LVQGenerator-type algorithm.Instance
,
InstanceSet
Modifier and Type | Field and Description |
---|---|
protected PrototypeSet |
initial
Initial Prototype set.
|
protected boolean |
initialset
If the initialset is set.
|
protected int |
iterations
Number of iterations of the algorithm.
|
protected int |
numberOfPrototypesGenerated
Number of prototypes of the resulting set.
|
algorithmName, generatedDataSet, SEED, seedDefaultValueList, trainingDataSet
Constructor and Description |
---|
LVQGenerator(PrototypeSet _trainingDataSet,
int iterations,
double percRed)
Constructs a new LVQGenerator algorithm.
|
LVQGenerator(PrototypeSet _trainingDataSet,
int iterations,
int n)
Constructs a new LVQGenerator algorithm.
|
LVQGenerator(PrototypeSet _trainingDataSet,
Parameters parameters)
Constructs a new LVQGenerator algorithm.
|
LVQGenerator(PrototypeSet InitialSet,
PrototypeSet _trainingDataSet,
int iterations,
int n)
WITH INITIAL CODE-BOOKS
Constructs a new LVQGenerator algorithm.
|
Modifier and Type | Method and Description |
---|---|
protected abstract void |
penalize(Prototype m,
Prototype x)
Applies a penalization to prototype m
|
PrototypeSet |
reduceSet()
Execute the method and returns the condensed prototype set.
|
protected abstract void |
reward(Prototype m,
Prototype x)
Applies a reward to prototype m
|
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, main, saveResultsOfAccuracyIn, saveResultsOfAccuracyIn, selecRandomSet, setSeed, showResultsOfAccuracy, showResultsOfAccuracy
protected int iterations
protected int numberOfPrototypesGenerated
protected boolean initialset
protected PrototypeSet initial
public LVQGenerator(PrototypeSet _trainingDataSet, int iterations, int n)
_trainingDataSet
- iterations
- Iterations that will execute the algorithm.n
- Number of prototypes to be returned.public LVQGenerator(PrototypeSet InitialSet, PrototypeSet _trainingDataSet, int iterations, int n)
InitialSet
- Initial datset_trainingDataSet
- training datasetiterations
- Iterations that will execute the algorithm.n
- Number of prototypes to be returned.public LVQGenerator(PrototypeSet _trainingDataSet, int iterations, double percRed)
_trainingDataSet
- iterations
- Iterations that will execute the algorithm.percRed
- Percentage of the training size that will have the reduced set.public LVQGenerator(PrototypeSet _trainingDataSet, Parameters parameters)
_trainingDataSet
- parameters
- Parameters of the algorithm (number of iterations [integer], % of reduced size [double in (0-100]])protected abstract void reward(Prototype m, Prototype x)
m
- Rewarded prototype. IT IS MODIFIED.x
- Nearest prototype to m.protected abstract void penalize(Prototype m, Prototype x)
m
- Penalized prototype. IT IS MODIFIED.x
- Nearest prototype to m.public PrototypeSet reduceSet()
reduceSet
in class PrototypeGenerator