|
||||||||||
| 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 EnsembleMLdataSet - The data set.public EnsembleDataSet getTrainingSet()
getTrainingSet in interface EnsembleML
public void train(double targetError,
boolean verbose)
EnsembleML
train in interface EnsembleMLtargetError - Target error.verbose - Verbose mode.public void setMl(MLMethod newMl)
EnsembleML
setMl in interface EnsembleMLnewMl - The new ML.public MLMethod getMl()
getMl in interface EnsembleMLpublic int classify(MLData input)
MLClassification
classify in interface MLClassificationinput - The input data to classify.
public MLData compute(MLData input)
MLRegression
compute in interface MLRegressioninput - The input data.
public int getInputCount()
getInputCount in interface MLInputpublic int getOutputCount()
getOutputCount in interface MLOutputpublic void train(double targetError)
EnsembleML
train in interface EnsembleMLtargetError - The target error.public int winner(MLData output)
public void setTraining(MLTrain train)
EnsembleML
setTraining 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)
EnsembleML
getError in interface EnsembleML
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||