public class AMPSOGenerator extends PrototypeGenerator
Modifier and Type | Field and Description |
---|---|
protected int |
numberOfClass |
protected int |
numberOfPrototypes
Swarmsize is the percentage
|
algorithmName, generatedDataSet, SEED, seedDefaultValueList, trainingDataSet
Constructor and Description |
---|
AMPSOGenerator(PrototypeSet _trainingDataSet,
int neigbors,
int poblacion,
int iteraciones,
double c1,
double c2,
double c3,
double vmax,
double inertia,
double x,
double pr,
double pd)
Build a new PSOGenerator Algorithm
|
AMPSOGenerator(PrototypeSet t,
Parameters parameters)
Build a new PSOGenerator Algorithm
|
Modifier and Type | Method and Description |
---|---|
protected double |
fitness(PrototypeSet Population,
int particleIndex)
Return the local-fitness of the particle.
|
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 which contains the test data set.
3: Seed of the random number generator.
|
PrototypeSet |
reduceSet()
Generate a reduced prototype set by the AMPSOGenerator 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 int numberOfPrototypes
protected int numberOfClass
public AMPSOGenerator(PrototypeSet _trainingDataSet, int neigbors, int poblacion, int iteraciones, double c1, double c2, double c3, double vmax, double inertia, double x, double pr, double pd)
public AMPSOGenerator(PrototypeSet t, Parameters parameters)
t
- Original prototype set to be reduced.parameters
- Parameters of the algorithm (only % of reduced set).protected double fitness(PrototypeSet Population, int particleIndex)
Population
- particleIndex
- public PrototypeSet reduceSet()
reduceSet
in class PrototypeGenerator
public static void main(java.lang.String[] args)
args
- Arguments of the main function.