|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiva.sketch.classification.AbstractClassifier
public abstract class AbstractClassifier
Given a training set containing multiple classes, for each class, an AbstractClassifier would compute the mu and sigma of each feature of that class. These mu's and sigma's are stored in a WeightSet object. As the result, if there are n classes, there should be n WeightSet objects.
Field Summary | |
---|---|
protected ArrayList |
_weights
An array of WeighSet objects, one per class. |
Constructor Summary | |
---|---|
AbstractClassifier()
Construct an abstract classifier and instantiate its weight array for features. |
Method Summary | |
---|---|
void |
clear()
Reset the weight sets. |
void |
debug(String s)
Debugging output. |
boolean |
isIncremental()
Return false; not incremental. |
void |
train(TrainingSet tset)
Train on the given data set by building the set of weights that are to be used by the classify() method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface diva.sketch.classification.Classifier |
---|
classify |
Field Detail |
---|
protected ArrayList _weights
Constructor Detail |
---|
public AbstractClassifier()
Method Detail |
---|
public void clear()
clear
in interface TrainableClassifier
public final void debug(String s)
public final boolean isIncremental()
isIncremental
in interface TrainableClassifier
public void train(TrainingSet tset) throws ClassifierException
train
in interface TrainableClassifier
ClassifierException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |