de.jstacs.models.hmm
Class HMMTrainingParameterSet
java.lang.Object
de.jstacs.parameters.ParameterSet
de.jstacs.models.hmm.HMMTrainingParameterSet
- All Implemented Interfaces:
- GalaxyConvertible, RangeIterator, Storable, Cloneable
- Direct Known Subclasses:
- MaxHMMTrainingParameterSet, SamplingHMMTrainingParameterSet
public class HMMTrainingParameterSet
- extends ParameterSet
This class implements an abstract ParameterSet
that is used for the training of an AbstractHMM
.
- Author:
- Jens Keilwagen
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 |
HMMTrainingParameterSet
protected HMMTrainingParameterSet()
- This is the empty constructor that can be used to fill the parameters after creation.
HMMTrainingParameterSet
protected HMMTrainingParameterSet(int starts)
throws SimpleParameter.IllegalValueException
- This constructor can be used to create an instance with a specified number of starts.
- Parameters:
starts
- the number of different starts
- Throws:
SimpleParameter.IllegalValueException
- if the parameter can not be set
HMMTrainingParameterSet
protected HMMTrainingParameterSet(StringBuffer xml)
throws NonParsableException
- The standard constructor for the interface
Storable
.
Constructs a HMMTrainingParameterSet
out of an XML representation.
- Parameters:
xml
- the XML representation as StringBuffer
- Throws:
NonParsableException
- if the HMMTrainingParameterSet
could not be reconstructed out of
the StringBuffer
xml
loadParameters
protected void loadParameters()
throws Exception
- Description copied from class:
ParameterSet
- Loads the parameters for this
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
.
- Specified by:
loadParameters
in class ParameterSet
- Throws:
Exception
- if the parameters could not be loaded- See Also:
Parameter
,
ParameterSet.parameters
,
ParameterSet.initParameterList()
,
ParameterSet.initParameterList(int)
getNumberOfStarts
public int getNumberOfStarts()
- The method returns the number of different starts.
- Returns:
- the number of starts