|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.encog.neural.networks.training.BasicTraining
org.encog.neural.networks.training.svm.SVMTrain
public class SVMTrain
Provides training for Support Vector Machine networks.
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
SVMTrain(BasicNetwork network,
NeuralDataSet training)
Construct a trainer for an SVM network. |
|
| Method Summary | |
|---|---|
double |
crossValidate(int index,
double gamma,
double c)
Cross validate and check the specified index/gamma. |
void |
finishTraining()
Called to finish training. |
double |
getConstBegin()
|
double |
getConstEnd()
|
double |
getConstStep()
|
int |
getFold()
|
double |
getGammaBegin()
|
double |
getGammaEnd()
|
double |
getGammaStep()
|
BasicNetwork |
getNetwork()
Get the current best network from the training. |
svm_problem[] |
getProblem()
|
boolean |
isTrainingDone()
|
void |
iteration()
Perform one training iteration. |
void |
setConstBegin(double constBegin)
|
void |
setConstEnd(double constEnd)
|
void |
setConstStep(double constStep)
|
void |
setFold(int fold)
|
void |
setGammaBegin(double gammaBegin)
|
void |
setGammaEnd(double gammaEnd)
|
void |
setGammaStep(double gammaStep)
|
void |
train()
Quickly train all outputs with a C of 1.0 and a gamma equal to 1/(num inputs). |
void |
train(double gamma,
double c)
Quickly train the network with a fixed gamma and C. |
void |
train(int index,
double gamma,
double c)
Quickly train one output with the specified gamma and C. |
| Methods inherited from class org.encog.neural.networks.training.BasicTraining |
|---|
addStrategy, getCloud, getError, getIteration, getStrategies, getTraining, iteration, postIteration, preIteration, setCloud, setError, setIteration, setTraining |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public SVMTrain(BasicNetwork network,
NeuralDataSet training)
network - The network to train.training - The training data for this network.| Method Detail |
|---|
public void train()
public void train(int index,
double gamma,
double c)
index - The output to train.gamma - The gamma to train with.c - The C to train with.
public double crossValidate(int index,
double gamma,
double c)
index - The output index to cross validate.gamma - The gamma to check.c - The C to check.
public void iteration()
public svm_problem[] getProblem()
public int getFold()
public void setFold(int fold)
fold - the fold to setpublic double getConstBegin()
public void setConstBegin(double constBegin)
constBegin - the constBegin to setpublic double getConstStep()
public void setConstStep(double constStep)
constStep - the constStep to setpublic double getConstEnd()
public void setConstEnd(double constEnd)
constEnd - the constEnd to setpublic double getGammaBegin()
public void setGammaBegin(double gammaBegin)
gammaBegin - the gammaBegin to setpublic double getGammaEnd()
public void setGammaEnd(double gammaEnd)
gammaEnd - the gammaEnd to setpublic double getGammaStep()
public void setGammaStep(double gammaStep)
gammaStep - the gammaStep to setpublic void finishTraining()
finishTraining in interface TrainfinishTraining in class BasicTrainingpublic BasicNetwork getNetwork()
Train
public boolean isTrainingDone()
isTrainingDone in interface TrainisTrainingDone in class BasicTraining
public void train(double gamma,
double c)
gamma - The gamma to use.c - The C to use.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||