public class BayesClassifier extends AbstractClassifier
Modifier and Type | Field and Description |
---|---|
protected static double |
MIN_SIGMA
The minimum sigma value; used to avoid divide-by-zero errors.
|
_weights
Constructor and Description |
---|
BayesClassifier() |
Modifier and Type | Method and Description |
---|---|
Classification |
classify(FeatureSet fs)
Given a feature vector (fs), compute the joint probability of
each class.
|
void |
train(TrainingSet tset)
Compute mu's and sigma's for each class, also computes the
coefficients (one per class) that are used in the joint
p.d.f.
|
clear, debug, isIncremental
protected static final double MIN_SIGMA
public void train(TrainingSet tset) throws ClassifierException
train
in interface TrainableClassifier
train
in class AbstractClassifier
ClassifierException
public Classification classify(FeatureSet fs) throws ClassifierException
ClassifierException
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.