|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiva.sketch.classification.RubineClassifier
public class RubineClassifier
This classifier implements the classic linear discriminator. More information can be obtained from Rubine's paper.
Constructor Summary | |
---|---|
RubineClassifier()
|
Method Summary | |
---|---|
Classification |
classify(FeatureSet fs)
Return a classification for the specified feature set, or throw a runtime exception if the feature set that is given does not have the same number of features as the training set that it was trained on. |
Classification |
classify2(FeatureSet fs)
Return a classification for the specified feature set, or throw a runtime exception if the feature set that is given does not have the same number of features as the training set that it was trained on. |
void |
clear()
Clear all results of previous trainings (presumably so that this classifier can be trained again from scratch). |
boolean |
isIncremental()
Return whether this classifier is incremental, i.e. |
static void |
main(String[] argv)
|
static double |
myInvert(double[][] ym,
double[][] rm)
A new invert routine taken directly from Amulet's gest_matrix.cc (where it's called InvertMatrix). |
static double |
quadraticForm(double[] v,
double[][] m)
|
void |
train(TrainingSet tset)
Train the classifier with a given training set and produce a weight vector per training class (a weight for each feature, _weights[]). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RubineClassifier()
Method Detail |
---|
public static void main(String[] argv)
public Classification classify2(FeatureSet fs) throws ClassifierException
ClassifierException
public Classification classify(FeatureSet fs) throws ClassifierException
Classifier
classify
in interface Classifier
ClassifierException
public void clear()
clear
in interface TrainableClassifier
public boolean isIncremental()
isIncremental
in interface TrainableClassifier
public void train(TrainingSet tset) throws ClassifierException
train
in interface TrainableClassifier
ClassifierException
public static double myInvert(double[][] ym, double[][] rm)
public static double quadraticForm(double[] v, double[][] m)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |