|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.jstacs.parameters.ParameterSet
de.jstacs.models.hmm.HMMTrainingParameterSet
de.jstacs.models.hmm.training.MaxHMMTrainingParameterSet
de.jstacs.models.hmm.training.NumericalHMMTrainingParameterSet
public class NumericalHMMTrainingParameterSet
This class implements an ParameterSet
for numerical training of an AbstractHMM
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class de.jstacs.parameters.ParameterSet |
---|
ParameterSet.ParameterList |
Field Summary |
---|
Fields inherited from class de.jstacs.parameters.ParameterSet |
---|
errorMessage, parameters, parent, ranged |
Constructor Summary | |
---|---|
NumericalHMMTrainingParameterSet()
This is the empty constructor that can be used to fill the parameters after creation. |
|
NumericalHMMTrainingParameterSet(int starts,
AbstractTerminationCondition tc,
byte algorithm,
double lineEps,
double startDist,
int threads)
This constructor can be used to create an instance with specified parameters. |
|
NumericalHMMTrainingParameterSet(StringBuffer xml)
The standard constructor for the interface Storable . |
Method Summary | |
---|---|
byte |
getAlgorithm()
This method returns a byte encoding for the algorithm that should be used for optimization. |
double |
getLineEps()
This method returns the threshold that should be used for stopping the line search during the optimization. |
int |
getNumberOfThreads()
This method returns the number of threads that should be used during optimization. |
double |
getStartDistance()
This method returns the start distance that should be used in the line search during the optimization. |
protected void |
loadParameters()
Loads the parameters for this ParameterSet . |
Methods inherited from class de.jstacs.models.hmm.training.MaxHMMTrainingParameterSet |
---|
getTerminantionCondition |
Methods inherited from class de.jstacs.models.hmm.HMMTrainingParameterSet |
---|
getNumberOfStarts |
Methods inherited from class de.jstacs.parameters.ParameterSet |
---|
clone, fromGalaxy, fromXML, getErrorMessage, getId, getIndex, getNumberOfParameters, getNumberOfValues, getParameterAt, getParent, hasDefaultOrIsSet, initParameterList, initParameterList, isAtomic, isRanged, makeRanged, next, parametersLoaded, propagateId, recieveId, replaceParametersWithRangedInstance, reset, resetToFirst, setParent, simplify, toGalaxy, toXML, valuesToString |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NumericalHMMTrainingParameterSet()
public NumericalHMMTrainingParameterSet(int starts, AbstractTerminationCondition tc, byte algorithm, double lineEps, double startDist, int threads) throws Exception
starts
- the number of different startstc
- the termination condition for stopping the algorithmalgorithm
- the algorithm that shall be usedlineEps
- the threshold for stopping the line searchstartDist
- the start distance for the line searchthreads
- the number of threads used during numerical optimization
Exception
- if this NumericalHMMTrainingParameterSet
could not be createdpublic NumericalHMMTrainingParameterSet(StringBuffer xml) throws NonParsableException
Storable
.
Constructs a NumericalHMMTrainingParameterSet
out of an XML representation.
xml
- the XML representation as StringBuffer
NonParsableException
- if the NumericalHMMTrainingParameterSet
could not be reconstructed out of
the StringBuffer
xml
Method Detail |
---|
protected void loadParameters() throws Exception
ParameterSet
ParameterSet
. This is in most cases
done by calling ParameterSet.initParameterList()
or
ParameterSet.initParameterList(int)
to initialize
ParameterSet.parameters
and afterwards filling
ParameterSet.parameters
with instances of subclasses of
Parameter
.
loadParameters
in class MaxHMMTrainingParameterSet
Exception
- if the parameters could not be loadedParameter
,
ParameterSet.parameters
,
ParameterSet.initParameterList()
,
ParameterSet.initParameterList(int)
public byte getAlgorithm()
public double getLineEps()
public double getStartDistance()
public int getNumberOfThreads()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |