|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.cmu.minorthird.classify.semisupervised.MultinomialClassifier
public class MultinomialClassifier
Constructor Summary | |
---|---|
MultinomialClassifier()
|
Method Summary | |
---|---|
void |
addValidLabel(ClassLabel label)
|
ClassLabel |
classification(Instance instance)
Return a predicted type for each element of the sequence. |
java.lang.String |
explain(Instance instance)
Return some string that 'explains' the classification |
java.util.Iterator<Feature> |
featureIterator()
|
Explanation |
getExplanation(Instance instance)
Return an Explanation for the classification |
java.lang.String |
getFeatureModel(Feature feature)
|
ClassLabel |
getLabel(int i)
|
double |
getLogLikelihood(Example example)
|
double |
getPrior()
|
java.lang.String |
getUnseenModel()
|
int |
indexOf(ClassLabel label)
|
boolean |
isPresent(ClassLabel label)
|
java.lang.Object[] |
keys()
|
void |
reset()
|
double[] |
score(Instance instance)
|
void |
setClassParameter(int j,
double probabilityOfOccurrence)
|
void |
setFeatureGivenClassParameter(Feature f,
int j,
double probabilityOfOccurrence)
|
void |
setFeatureModel(Feature feature,
java.lang.String model)
|
void |
setPrior(double pi)
|
void |
setScale(double value)
|
void |
setUnseenModel(java.lang.String str)
|
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 |
Constructor Detail |
---|
public MultinomialClassifier()
Method Detail |
---|
public ClassLabel classification(Instance instance)
SemiSupervisedClassifier
classification
in interface Classifier
classification
in interface SemiSupervisedClassifier
public double[] score(Instance instance)
public java.lang.String explain(Instance instance)
SemiSupervisedClassifier
explain
in interface Classifier
explain
in interface SemiSupervisedClassifier
public Explanation getExplanation(Instance instance)
Classifier
getExplanation
in interface Classifier
public void setScale(double value)
public double getPrior()
public void setPrior(double pi)
public java.lang.String getUnseenModel()
public void setUnseenModel(java.lang.String str)
public double getLogLikelihood(Example example)
public void reset()
public boolean isPresent(ClassLabel label)
public void addValidLabel(ClassLabel label)
public ClassLabel getLabel(int i)
public int indexOf(ClassLabel label)
public void setFeatureGivenClassParameter(Feature f, int j, double probabilityOfOccurrence)
public void setClassParameter(int j, double probabilityOfOccurrence)
public void setFeatureModel(Feature feature, java.lang.String model)
public java.lang.String getFeatureModel(Feature feature)
public java.util.Iterator<Feature> featureIterator()
public java.lang.Object[] keys()
public Viewer toGUI()
Visible
toGUI
in interface Visible
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |