public interface GibbsSamplingModel extends SamplingComponent
AbstractTrainableStatisticalModel
has to implement if it
should be used in a sampling.
drawParameters(DataSet, double[] )
is used for
drawing the parameters from the posterior.AbstractTrainableStatisticalModel
,
AbstractMixtureTrainSM
,
AbstractMixtureTrainSM.Algorithm.GIBBS_SAMPLING
Modifier and Type | Method and Description |
---|---|
void |
drawParameters(DataSet data,
double[] weights)
This method draws the parameters of the model from the a posteriori
density.
|
acceptParameters, extendSampling, initForSampling, isInSamplingMode, parseNextParameterSet, parseParameterSet, samplingStopped
void drawParameters(DataSet data, double[] weights) throws Exception
SamplingComponent.acceptParameters()
so that they can later be parsed using the
methods of the interface.
SamplingComponent.initForSampling(int)
should be
called.data
- a data setweights
- the (non-negative) weights for each sequence of the data setException
- if there is a problem with drawing the parameters, the model
is not initialized, ...SamplingComponent.initForSampling(int)
,
SamplingComponent.acceptParameters()