public class RandomSelector extends PrototypeGenerator
Modifier and Type | Field and Description |
---|---|
protected int |
numberOfPrototypesSelected
Number of prototypes that will contain the generated data set (prototypes extracted from the training data set).
|
algorithmName, generatedDataSet, SEED, seedDefaultValueList, trainingDataSet
Constructor and Description |
---|
RandomSelector(PrototypeSet t,
int n)
Creates a new RandomSelector
|
RandomSelector(PrototypeSet t,
Parameters params)
Creates a new RandomSelector
|
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
|
PrototypeSet |
reduceSet()
Extract prototypes from the training data and returns them in a new data set.
|
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 numberOfPrototypesSelected
public RandomSelector(PrototypeSet t, int n)
t
- Traning data setn
- Number of prototypes to be extracted.public RandomSelector(PrototypeSet t, Parameters params)
t
- Traning data setparams
- External parameterspublic PrototypeSet reduceSet()
reduceSet
in class PrototypeGenerator
public static void main(java.lang.String[] args)
args
- Arguments of the main function.