|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TransitionWithSufficientStatistic
This interface defines method for reseting and filling an internal sufficient statistic.
Using this statistic the interfaces TrainableTransition
and SamplingTransition
can be used to estimate the parameters (cf. TrainableTransition.estimateFromStatistic()
)
or to draw new parameters (cf. SamplingFromStatistic.drawParametersFromStatistic()
).
TrainableTransition
,
SamplingTransition
Method Summary | |
---|---|
void |
addToStatistic(int layer,
int index,
int childIdx,
double weight,
Sequence sequence,
int sequencePosition)
This method allows to add a certain weight to the sufficient statistic of a specific transition. |
double |
getLogGammaScoreFromStatistic()
This method calculates a score for the current statistics, which is independent from the current parameters In general the gamma-score is a product of gamma-functions parameterized with the current statistics |
void |
joinStatistics(Transition... transitions)
This method joins the statistics of different instances and sets this joined statistic as statistic of each instance. |
void |
resetStatistic()
This method reset the internal sufficient statistics that can be used for estimating the parameters. |
Methods inherited from interface de.jstacs.sequenceScores.statisticalModels.trainable.hmm.transitions.Transition |
---|
clone, fillTransitionInformation, getChildIdx, getGraphizNetworkRepresentation, getLastContextState, getLogPriorTerm, getLogScoreFor, getMaximalInDegree, getMaximalMarkovOrder, getMaximalNumberOfChildren, getNumberOfChildren, getNumberOfIndexes, getNumberOfStates, hasAnySelfTransitions, initializeRandomly, isAbsoring, setParameters, toString |
Methods inherited from interface de.jstacs.Storable |
---|
toXML |
Method Detail |
---|
void resetStatistic()
void addToStatistic(int layer, int index, int childIdx, double weight, Sequence sequence, int sequencePosition)
weight
to the sufficient statistic of a specific transition.
layer
- the layer of the matrixindex
- the index encoding the contextchildIdx
- the index of the childweight
- the weight added to the sufficient statisticsequence
- the sequencesequencePosition
- the position within the sequencevoid joinStatistics(Transition... transitions)
transitions
- the transitions to be joineddouble getLogGammaScoreFromStatistic()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |