public class BTS3Generator extends PrototypeGenerator
Modifier and Type | Field and Description |
---|---|
protected int |
nearestNeighbors
Size of the merged data set.
|
protected int |
numberOfPrototypesGenerated
Size of the generated set.
|
protected int |
randomTrials
Number of bootstrapings of the algorithm.
|
algorithmName, generatedDataSet, SEED, seedDefaultValueList, trainingDataSet
Constructor and Description |
---|
BTS3Generator(PrototypeSet _trainingDataSet,
double percSize,
int nearestNeighbors,
int trials)
Constructor
|
BTS3Generator(PrototypeSet _trainingDataSet,
int Np,
int nearestNeighbors,
int trials)
Constructor
|
BTS3Generator(PrototypeSet _trainingDataSet,
Parameters parameters)
Constructor
|
Modifier and Type | Method and Description |
---|---|
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
2: Seed of the random generator.
3: Number of prototypes to be generated.
4: Nearest-Neighbors used in the internal KNN use.
5: Random Trials (number of bootstrappings performed).
|
PrototypeSet |
reduceSet()
Reduce the training data set by the Hamamoto et al.
|
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 numberOfPrototypesGenerated
protected int randomTrials
protected int nearestNeighbors
public BTS3Generator(PrototypeSet _trainingDataSet, Parameters parameters)
_trainingDataSet
- Traning data set.parameters
- Parameters of the algorithm.public BTS3Generator(PrototypeSet _trainingDataSet, int Np, int nearestNeighbors, int trials)
_trainingDataSet
- Traning data set.Np
- Number of prototypes to be generated.nearestNeighbors
- Nearest-neighbors used to assign class to each prototype generated.trials
- Random trials to be performed during execution.public BTS3Generator(PrototypeSet _trainingDataSet, double percSize, int nearestNeighbors, int trials)
_trainingDataSet
- Traning data set.percSize
- Percentage of the size of training set that will be the reduced set.nearestNeighbors
- Nearest-neighbors used to assign class to each prototype generated.trials
- Random trials to be performed during execution.public PrototypeSet reduceSet()
reduceSet
in class PrototypeGenerator
public static void main(java.lang.String[] args)
args
- Arguments of the main function.