|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.cmu.minorthird.classify.semisupervised.SemiSupervisedBatchClassifierLearner
edu.cmu.minorthird.classify.semisupervised.SemiSupervisedNaiveBayesLearner
public class SemiSupervisedNaiveBayesLearner
Implementation of the methods described in: K. Nigam, A. McCallum, S. Thrun and T. Mitchell. Text Classifiaction from labeled and unlabeled documents using EM. W. Choen editor, Machine Learning, 1999.
Field Summary |
---|
Fields inherited from class edu.cmu.minorthird.classify.semisupervised.SemiSupervisedBatchClassifierLearner |
---|
classifier |
Constructor Summary | |
---|---|
SemiSupervisedNaiveBayesLearner()
|
|
SemiSupervisedNaiveBayesLearner(int iterations)
|
Method Summary | |
---|---|
Classifier |
batchTrain(SemiSupervisedDataset dataset)
subclasses should use this method to implement a batch supervised learning algorithm. |
ClassifierLearner |
copy()
Make a copy of the learner. |
ExampleSchema |
getSchema()
Returns the ExampleSchema - constraints on what the Examples will be. |
static void |
main(java.lang.String[] args)
|
void |
setInstancePool(java.util.Iterator<Instance> i)
subclasses should use this method to get the unlabeled examples available for semi-supervised learning. |
void |
setSchema(ExampleSchema schema)
Enables control on number of classes allowed to be passed to the learner |
Methods inherited from class edu.cmu.minorthird.classify.semisupervised.SemiSupervisedBatchClassifierLearner |
---|
addExample, completeTraining, getClassifier, hasNextQuery, nextQuery, reset |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SemiSupervisedNaiveBayesLearner()
public SemiSupervisedNaiveBayesLearner(int iterations)
Method Detail |
---|
public void setSchema(ExampleSchema schema)
SemiSupervisedBatchClassifierLearner
setSchema
in interface ClassifierLearner
setSchema
in class SemiSupervisedBatchClassifierLearner
public void setInstancePool(java.util.Iterator<Instance> i)
SemiSupervisedBatchClassifierLearner
setInstancePool
in interface ClassifierLearner
setInstancePool
in class SemiSupervisedBatchClassifierLearner
public ExampleSchema getSchema()
ClassifierLearner
public ClassifierLearner copy()
ClassifierLearner
public Classifier batchTrain(SemiSupervisedDataset dataset)
SemiSupervisedBatchClassifierLearner
batchTrain
in class SemiSupervisedBatchClassifierLearner
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |