edu.cmu.minorthird.classify.sequential
Class MultiClassHMMClassifier

java.lang.Object
  extended by edu.cmu.minorthird.classify.sequential.MultiClassHMMClassifier
All Implemented Interfaces:
SequenceClassifier, SequenceConstants, Visible, java.io.Serializable

public class MultiClassHMMClassifier
extends java.lang.Object
implements SequenceClassifier, SequenceConstants, Visible, java.io.Serializable

See Also:
Serialized Form

Field Summary
 HMM hmmModel
           
 
Fields inherited from interface edu.cmu.minorthird.classify.sequential.SequenceConstants
HISTORY_FEATURE, NULL_CLASS_NAME
 
Constructor Summary
MultiClassHMMClassifier(SequenceDataset dataset)
           
 
Method Summary
 void baumwelch(double threshold)
           
 ClassLabel[] classification(Instance[] sequence)
          Return a predicted type for each element of the sequence.
 java.lang.String explain(Instance[] instance)
          Return some string that 'explains' the classification, this function is also required to be re-written
 Explanation getExplanation(Instance[] instance)
          Return and explanation for a classification
 Viewer toGUI()
          Create a view of this object
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

hmmModel

public HMM hmmModel
Constructor Detail

MultiClassHMMClassifier

public MultiClassHMMClassifier(SequenceDataset dataset)
Method Detail

baumwelch

public void baumwelch(double threshold)

classification

public ClassLabel[] classification(Instance[] sequence)
Description copied from interface: SequenceClassifier
Return a predicted type for each element of the sequence.

Specified by:
classification in interface SequenceClassifier

explain

public java.lang.String explain(Instance[] instance)
Return some string that 'explains' the classification, this function is also required to be re-written

Specified by:
explain in interface SequenceClassifier

getExplanation

public Explanation getExplanation(Instance[] instance)
Description copied from interface: SequenceClassifier
Return and explanation for a classification

Specified by:
getExplanation in interface SequenceClassifier

toGUI

public Viewer toGUI()
Description copied from interface: Visible
Create a view of this object

Specified by:
toGUI in interface Visible

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object