|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.encog.ensemble.GenericEnsembleML
public class GenericEnsembleML
Constructor Summary | |
---|---|
GenericEnsembleML(MLMethod fromML,
String description)
|
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GenericEnsembleML(MLMethod fromML, String description)
Method Detail |
---|
public void setTrainingSet(EnsembleDataSet dataSet)
EnsembleML
setTrainingSet
in interface EnsembleML
dataSet
- The data set.public EnsembleDataSet getTrainingSet()
getTrainingSet
in interface EnsembleML
public void train(double targetError, boolean verbose)
EnsembleML
train
in interface EnsembleML
targetError
- Target error.verbose
- Verbose mode.public void setMl(MLMethod newMl)
EnsembleML
setMl
in interface EnsembleML
newMl
- The new ML.public MLMethod getMl()
getMl
in interface EnsembleML
public int classify(MLData input)
MLClassification
classify
in interface MLClassification
input
- The input data to classify.
public MLData compute(MLData input)
MLRegression
compute
in interface MLRegression
input
- The input data.
public int getInputCount()
getInputCount
in interface MLInput
public int getOutputCount()
getOutputCount
in interface MLOutput
public void train(double targetError)
EnsembleML
train
in interface EnsembleML
targetError
- The target error.public int winner(MLData output)
public void setTraining(MLTrain train)
EnsembleML
setTraining
in interface EnsembleML
train
- The trainer.public MLTrain getTraining()
getTraining
in interface EnsembleML
public void trainStep()
trainStep
in interface EnsembleML
public String getLabel()
getLabel
in interface EnsembleML
public double getError(EnsembleDataSet testset)
EnsembleML
getError
in interface EnsembleML
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |