|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.encog.ml.train.BasicTraining
org.encog.ml.svm.training.SVMTrain
public class SVMTrain
Provides training for Support Vector Machine networks.
| Constructor Summary | |
|---|---|
SVMTrain(SVM method,
MLDataSet dataSet)
Construct a trainer for an SVM network. |
|
| Method Summary | |
|---|---|
boolean |
canContinue()
|
double |
getC()
|
int |
getFold()
|
double |
getGamma()
|
MLMethod |
getMethod()
Get the current best machine learning method from the training. |
svm_problem |
getProblem()
|
boolean |
isTrainingDone()
|
void |
iteration()
Perform either a train or a cross validation. |
TrainingContinuation |
pause()
Pause the training to continue later. |
void |
resume(TrainingContinuation state)
Resume training. |
void |
setC(double theC)
Set the constant C. |
void |
setFold(int theFold)
Set the number of folds. |
void |
setGamma(double theGamma)
Set the gamma. |
| Methods inherited from class org.encog.ml.train.BasicTraining |
|---|
addStrategy, finishTraining, getError, getImplementationType, getIteration, getStrategies, getTraining, iteration, postIteration, preIteration, setError, setIteration, setTraining |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SVMTrain(SVM method,
MLDataSet dataSet)
method - The network to train.dataSet - The training data for this network.| Method Detail |
|---|
public boolean canContinue()
public double getC()
public int getFold()
public double getGamma()
public MLMethod getMethod()
public svm_problem getProblem()
public boolean isTrainingDone()
isTrainingDone in interface MLTrainisTrainingDone in class BasicTrainingpublic void iteration()
public final TrainingContinuation pause()
public void resume(TrainingContinuation state)
state - The training continuation object to use to continue.public void setC(double theC)
theC - The constant C.public void setFold(int theFold)
theFold - the fold to set.public void setGamma(double theGamma)
theGamma - The new gamma.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||