org.encog.ensemble
public class GenericEnsembleML extends Object implements EnsembleML
| Constructor and Description |
|---|
GenericEnsembleML(MLMethod fromML,
String description) |
| Modifier and Type | Method and Description |
|---|---|
int |
classify(MLData input)
Classify the input into a group.
|
MLData |
compute(MLData input)
Compute regression.
|
double |
getError(EnsembleDataSet testset)
Get the error for this ML on the dataset
|
int |
getInputCount() |
String |
getLabel() |
MLMethod |
getMl() |
int |
getOutputCount() |
MLTrain |
getTraining() |
EnsembleDataSet |
getTrainingSet() |
void |
setMl(MLMethod newMl)
Set the MLMethod to run
|
void |
setTraining(MLTrain train)
Set the training for this member
|
void |
setTrainingSet(EnsembleDataSet dataSet)
Set the dataset for this member
|
void |
train(double targetError)
Train the ML to a certain accuracy.
|
void |
train(double targetError,
boolean verbose)
Train the ML to a certain accuracy.
|
void |
trainStep() |
int |
winner(MLData output) |
public void setTrainingSet(EnsembleDataSet dataSet)
EnsembleMLsetTrainingSet in interface EnsembleMLdataSet - The data set.public EnsembleDataSet getTrainingSet()
getTrainingSet in interface EnsembleMLpublic void train(double targetError,
boolean verbose)
EnsembleMLtrain in interface EnsembleMLtargetError - Target error.verbose - Verbose mode.public void setMl(MLMethod newMl)
EnsembleMLsetMl in interface EnsembleMLnewMl - The new ML.public MLMethod getMl()
getMl in interface EnsembleMLpublic int classify(MLData input)
MLClassificationclassify in interface MLClassificationinput - The input data to classify.public MLData compute(MLData input)
MLRegressioncompute in interface MLRegressioninput - The input data.public int getInputCount()
getInputCount in interface MLInputpublic int getOutputCount()
getOutputCount in interface MLOutputpublic void train(double targetError)
EnsembleMLtrain in interface EnsembleMLtargetError - The target error.public int winner(MLData output)
public void setTraining(MLTrain train)
EnsembleMLsetTraining in interface EnsembleMLtrain - The trainer.public MLTrain getTraining()
getTraining in interface EnsembleMLpublic void trainStep()
trainStep in interface EnsembleMLpublic String getLabel()
getLabel in interface EnsembleMLpublic double getError(EnsembleDataSet testset)
EnsembleMLgetError in interface EnsembleMLCopyright © 2014. All Rights Reserved.