org.encog.ml.svm.training
public class SVMSearchTrain extends BasicTraining
Modifier and Type | Field and Description |
---|---|
static double |
DEFAULT_CONST_BEGIN
The default starting number for C.
|
static double |
DEFAULT_CONST_END
The default ending number for C.
|
static double |
DEFAULT_CONST_STEP
The default step for C.
|
static double |
DEFAULT_GAMMA_BEGIN
The default gamma begin.
|
static double |
DEFAULT_GAMMA_END
The default gamma end.
|
static double |
DEFAULT_GAMMA_STEP
The default gamma step.
|
Constructor and Description |
---|
SVMSearchTrain(SVM method,
MLDataSet training)
Construct a trainer for an SVM network.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canContinue() |
void |
finishTraining()
Should be called after training has completed and the iteration method
will not be called any further.
|
double |
getBestConst() |
double |
getBestGamma() |
double |
getConstBegin() |
double |
getConstEnd() |
double |
getConstStep() |
int |
getFold() |
double |
getGammaBegin() |
double |
getGammaEnd() |
double |
getGammaStep() |
MLMethod |
getMethod()
Get the current best machine learning method from the training.
|
boolean |
isTrainingDone() |
void |
iteration()
Perform one training iteration.
|
TrainingContinuation |
pause()
Pause the training to continue later.
|
void |
resume(TrainingContinuation state)
Resume training.
|
void |
setBestConst(double bestConst) |
void |
setBestGamma(double bestGamma) |
void |
setConstBegin(double theConstBegin) |
void |
setConstEnd(double theConstEnd) |
void |
setConstStep(double theConstStep) |
void |
setFold(int theFold) |
void |
setGammaBegin(double theGammaBegin) |
void |
setGammaEnd(double theGammaEnd) |
void |
setGammaStep(double theGammaStep) |
addStrategy, getError, getImplementationType, getIteration, getStrategies, getTraining, iteration, postIteration, preIteration, setError, setIteration, setTraining
public static final double DEFAULT_CONST_BEGIN
public static final double DEFAULT_CONST_END
public static final double DEFAULT_CONST_STEP
public static final double DEFAULT_GAMMA_BEGIN
public static final double DEFAULT_GAMMA_END
public static final double DEFAULT_GAMMA_STEP
public boolean canContinue()
public void finishTraining()
finishTraining
in interface MLTrain
finishTraining
in class BasicTraining
public double getConstBegin()
public double getConstEnd()
public double getConstStep()
public int getFold()
public double getGammaBegin()
public double getGammaEnd()
public double getGammaStep()
public MLMethod getMethod()
public boolean isTrainingDone()
isTrainingDone
in interface MLTrain
isTrainingDone
in class BasicTraining
public void iteration()
public TrainingContinuation pause()
public void resume(TrainingContinuation state)
state
- The training continuation object to use to continue.public void setConstBegin(double theConstBegin)
theConstBegin
- the constBegin to setpublic void setConstEnd(double theConstEnd)
theConstEnd
- the constEnd to setpublic void setConstStep(double theConstStep)
theConstStep
- the constStep to setpublic void setFold(int theFold)
theFold
- the fold to setpublic void setGammaBegin(double theGammaBegin)
theGammaBegin
- the gammaBegin to setpublic final void setGammaEnd(double theGammaEnd)
theGammaEnd
- the gammaEnd to set.public final void setGammaStep(double theGammaStep)
theGammaStep
- the gammaStep to setpublic double getBestConst()
public void setBestConst(double bestConst)
bestConst
- the bestConst to setpublic double getBestGamma()
public void setBestGamma(double bestGamma)
bestGamma
- the bestGamma to setCopyright © 2014. All Rights Reserved.