public class APSSCGenerator extends PrototypeGenerator
Modifier and Type | Field and Description |
---|---|
protected int |
numberOfClass
Number of classes.
|
protected int |
numberOfPrototypes
Number of prototypes.
|
algorithmName, generatedDataSet, Instancetest, Instancetrain, SEED, seedDefaultValueList, testDataSet, trainingDataSet, transductiveDataSet
Constructor and Description |
---|
APSSCGenerator(PrototypeSet _trainingDataSet,
int neigbors,
int poblacion,
int perc,
int iteraciones,
double c1,
double c2,
double vmax,
double wstart,
double wend)
Build a new APSSCGenerator Algorithm
|
APSSCGenerator(PrototypeSet t,
PrototypeSet unlabeled,
PrototypeSet test,
Parameters parameters)
Build a new APSSCGenerator Algorithm
|
Modifier and Type | Method and Description |
---|---|
Pair<PrototypeSet,PrototypeSet> |
applyAlgorithm()
Apply the Generator 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 which contains the test data set.
3: Seed of the random number generator.
|
absoluteAccuracy, absoluteAccuracyAndError, absoluteAccuracyKNN, accuracy, accuracy2, desordenar_vector_sin, desordenar_vector, execute, generateReducedDataSet, getResultingAccuracy, getResultsOfAccuracy, getSeed, getSetSizeFromPercentage, getSetSizeFromPercentage, getTime, inic_vector_sin, inic_vector, saveResultsOfAccuracyIn, selecRandomSet, setInstanceTest, setInstanceTrain, setSeed
protected int numberOfPrototypes
protected int numberOfClass
public APSSCGenerator(PrototypeSet _trainingDataSet, int neigbors, int poblacion, int perc, int iteraciones, double c1, double c2, double vmax, double wstart, double wend)
_trainingDataSet
- Original prototype set to be reduced.neigbors
- Number of neighbours considered.poblacion
- population size.perc
- Reduction percentage of the prototype set.iteraciones
- number of iterations.c2
- Class 2.c1
- Class 1.vmax
- max value.wend
- ending value of w.wstart
- starting value of w.public APSSCGenerator(PrototypeSet t, PrototypeSet unlabeled, PrototypeSet test, Parameters parameters)
t
- Original prototype set to be reduced.unlabeled
- Original unlabeled prototype set for SSL.test
- Original test prototype set.parameters
- Parameters of the algorithm (only % of reduced set).public Pair<PrototypeSet,PrototypeSet> applyAlgorithm()
applyAlgorithm
in class PrototypeGenerator
public static void main(java.lang.String[] args)
args
- Arguments of the main function.