de.jstacs.models.discrete.inhomogeneous.parameters
Class BayesianNetworkModelParameterSet
java.lang.Object
de.jstacs.parameters.ParameterSet
de.jstacs.parameters.InstanceParameterSet
de.jstacs.models.discrete.DGMParameterSet
de.jstacs.models.discrete.inhomogeneous.parameters.IDGMParameterSet
de.jstacs.models.discrete.inhomogeneous.parameters.BayesianNetworkModelParameterSet
- All Implemented Interfaces:
- RangeIterator, Storable, Cloneable
public class BayesianNetworkModelParameterSet
- extends IDGMParameterSet
The ParameterSet for the class BayesianNetworkModel.
- Author:
- Jens Keilwagen
Methods inherited from class de.jstacs.parameters.ParameterSet |
getErrorMessage, getId, getInstance, getInstanceClass, getNumberOfValues, getParent, initParameterList, initParameterList, isAtomic, isRanged, makeRanged, next, parametersLoaded, propagateId, recieveId, resetToFirst, setAlternativeInstanceClass, setParent, simplify, valuesToString |
BayesianNetworkModelParameterSet
public BayesianNetworkModelParameterSet(StringBuffer s)
throws NonParsableException
- The constructor for the
Storable
interface.
- Parameters:
s
- the StringBuffer
- Throws:
NonParsableException
- if the StringBuffer is not parsable
BayesianNetworkModelParameterSet
public BayesianNetworkModelParameterSet()
- The simple constructor for an empty parameter set of a BayesianNetworkModel.
BayesianNetworkModelParameterSet
public BayesianNetworkModelParameterSet(AlphabetContainer alphabet,
int length,
double ess,
String description,
StructureLearner.ModelType model,
byte order,
StructureLearner.LearningType method)
throws Exception
- This is the constructor of a filled parameter set for a BayesianNetworkModel.
- Parameters:
alphabet
- the alphabet container that is used in the modellength
- the length of the model (has to be positive)ess
- the equivalent sample size (has to be positive)description
- a short description of the model (used for a better handling of the object by the user)model
- the type of model: IMM, PMM or BNorder
- the order of the modelmethod
- the method how to learn the structure (only relevant for PMM, BN): ML_OR_MAP or BMA
- Throws:
Exception
- if something went wrong- See Also:
StructureLearner.ModelType.IMM
,
StructureLearner.ModelType.PMM
,
StructureLearner.ModelType.BN
,
StructureLearner.LearningType.ML_OR_MAP
,
StructureLearner.LearningType.BMA
loadParameters
protected void loadParameters()
throws Exception
- Description copied from class:
ParameterSet
- Loads the parameters for this
ParameterSet
. This is in
most cases done by simply creating a new ArrayList<Parameter>
for the
field parameters/code>
and filling it with instances of subclasses of Parameter
- Overrides:
loadParameters
in class DGMParameterSet
- Throws:
Exception
- an Exception
is thrown if the parameters could not be loaded- See Also:
ParameterSet.parameters
,
Parameter
setModelType
public void setModelType(String modelType)
throws SimpleParameter.IllegalValueException
- This method allows a simple change of the model type.
- Parameters:
modelType
- "iMM", "pMM" or "BN"
- Throws:
SimpleParameter.IllegalValueException
- if the modelType
is illegal
getInstanceComment
public String getInstanceComment()
- Description copied from class:
ParameterSet
- Returns a comment (a textual description) of the class that can be
constructed using this
ParameterSet
.
- Specified by:
getInstanceComment
in class ParameterSet
- Returns:
- the comment
getModelInstanceName
public String getModelInstanceName()
- This method returns a short description of the model.
- Returns:
- a short description of the model