public class MSEGenerator extends PrototypeGenerator
Modifier and Type | Field and Description |
---|---|
protected int |
numberOfClass |
protected int |
numberOfPrototypes |
algorithmName, generatedDataSet, SEED, seedDefaultValueList, trainingDataSet
Constructor and Description |
---|
MSEGenerator(PrototypeSet _trainingDataSet,
int k,
int centroid,
double gradStep,
double temp)
Build a new MSEGenerator Algorithm
|
MSEGenerator(PrototypeSet t,
Parameters parameters)
Build a new RSPGenerator Algorithm
|
Modifier and Type | Method and Description |
---|---|
protected double |
costFunction(Prototype X,
PrototypeSet conjunto)
Calculate the cost function.
|
protected double |
desiredProbabilities(Prototype x,
PrototypeSet conjunto,
int index)
Desired Probabilities.
|
protected PrototypeSet |
initDataSet()
Initialize the output data set
|
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.
|
protected void |
modifyLocation(Prototype X,
PrototypeSet vectors,
Prototype[] lastIncrements,
int index)
Correct the position of the prototype function.
|
protected double |
probabilityBelongCluster(Prototype x,
PrototypeSet conjunto,
int index)
Zindex probability, di = x - conjuntoi
|
PrototypeSet |
reduceSet()
Generate a reduced prototype set by the RSPGenerator 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 MSEGenerator(PrototypeSet _trainingDataSet, int k, int centroid, double gradStep, double temp)
public MSEGenerator(PrototypeSet t, Parameters parameters)
t
- Original prototype set to be reduced.parameters
- Parameters of the algorithm (only % of reduced set).protected double probabilityBelongCluster(Prototype x, PrototypeSet conjunto, int index)
x
- conjunto
- index
- protected double desiredProbabilities(Prototype x, PrototypeSet conjunto, int index)
x
- conjunto
- index
- protected double costFunction(Prototype X, PrototypeSet conjunto)
X
- conjunto
- (vectors)protected void modifyLocation(Prototype X, PrototypeSet vectors, Prototype[] lastIncrements, int index)
X
- , prototype front Training Set.i,
- prototype to correcttData
- protected PrototypeSet initDataSet()
public PrototypeSet reduceSet()
reduceSet
in class PrototypeGenerator
public static void main(java.lang.String[] args)
args
- Arguments of the main function.