Table of Contents

Class: GaussianMixtureHMM /amd/bernoulli/1/home/abt_vin/georgi/hmm/0.7/ghmm//ghmmwrapper/ghmm.py

HMMs with mixtures of Gaussians as emissions. Optional features: - fixing mixture components in training

Base Classes   
GaussianEmissionHMM
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.


Table of Contents

This document was automatically generated on Fri Jan 20 14:56:59 2006 by HappyDoc version WORKING