public class RubineClassifier extends Object implements TrainableClassifier
Constructor and Description |
---|
RubineClassifier() |
Modifier and Type | Method and Description |
---|---|
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[]).
|
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)
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.