HMMs with mixtures of Gaussians as emissions.
Optional features:
- fixing mixture components in training
Methods
|
|
__init__
__str__
getEmission
getEmissionProbability
logprob
setEmission
toMatrices
|
|
__init__
|
__init__ (
self,
emissionDomain,
distribution,
cmodel,
)
|
|
__str__
|
__str__ ( self )
defines string representation
|
|
getEmission
|
getEmission (
self,
i,
comp,
)
Return (mu, sigma^2, weight) of component comp in state i
|
|
getEmissionProbability
|
getEmissionProbability (
self,
value,
st,
)
|
|
logprob
|
logprob (
self,
emissionSequence,
stateSequence,
)
log P[ emissionSequence, stateSequence| m]
Exceptions
|
|
SequenceCannotBeBuild, "first symbol " + str(emissionSequence [ 0 ] ) + " not emitted by state " + str(stateSequence [ 0 ] )
SequenceCannotBeBuild, "symbol " + str(emissionSequence [ i + 1 ] ) + " not emitted by state " + str(stateSequence [ i + 1 ] )
TypeError, "EmissionSequence required, got " + str( emissionSequence.__class__.__name__ )
|
|
|
setEmission
|
setEmission (
self,
i,
comp,
(,
)
Set the emission distributionParameters for component comp in state i .
|
|
toMatrices
|
toMatrices ( self )
Return the parameters in matrix form.
|
|