Methods
|
|
|
|
AddState
|
AddState (
self,
index,
label='None',
)
|
|
AlphabetType
|
AlphabetType ( self )
return the type of emission domain
XXX should call the method in HMMAlphabet
|
|
ClassType
|
ClassType ( self )
|
|
Clear
|
Clear ( self )
|
|
DeleteState
|
DeleteState ( self, index )
The method only deletes a map between index and its state object.
The caller must delete the corresponding vertex in the owner Graph self.G.
|
|
DistributionType
|
DistributionType ( self )
|
|
OpenXML
|
OpenXML ( self, fileName_file_or_dom )
|
|
SaveAs
|
SaveAs ( self, fileName )
|
|
SaveAsGHMM
|
SaveAsGHMM ( self, fileName )
|
|
WriteGHMM
|
WriteGHMM ( self, fileName )
|
|
WriteXML
|
WriteXML ( self, fileName )
|
|
__init__
|
__init__ (
self,
XMLFileName=None,
G=None,
)
|
|
buildMatrices
|
buildMatrices ( self )
return [alphabets_code, A, B, pi, state_orders]
|
|
fromDOM
|
fromDOM ( self, XMLNode )
|
|
getAlphabets
|
getAlphabets ( self )
|
|
getBackgroundDist
|
getBackgroundDist ( self )
Return a pair of two dictionaries: (distribution, its orders):
a distribution is a list of real values of length N^(order+1).
|
|
getLabels
|
getLabels ( self )
returns list of state labels and unique labels
|
|
getStateAlphabets
|
getStateAlphabets ( self )
|
|
getStateDurations
|
getStateDurations ( self )
returns a list of the minimal number of times a state is evaluated
before the HMM changes to another state.
|
|
getTiedStates
|
getTiedStates ( self )
returns list of tied states, entry is None if a state isn't to
any other state, returns an empty list, if no state is tied
|
|
modelCheck
|
modelCheck ( self )
Exceptions
|
|
AlphabetErrorType( "Alphabet object is empty. You must create alphabet before saving." )
NotValidHMMType( "Initial state is not specified." )
|
|
|
toDOM
|
toDOM (
self,
XMLDoc,
XMLNode,
)
|