org.encog.ml.svm.training
public class SVMTrain extends BasicTraining
Constructor and Description |
---|
SVMTrain(SVM method,
MLDataSet dataSet)
Construct a trainer for an SVM network.
|
Modifier and Type | Method and Description |
---|---|
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.
|
addStrategy, finishTraining, getError, getImplementationType, getIteration, getStrategies, getTraining, iteration, postIteration, preIteration, setError, setIteration, setTraining
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 MLTrain
isTrainingDone
in class BasicTraining
public 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.Copyright © 2014. All Rights Reserved.