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, isIncrementalprotected static final double MIN_SIGMA
public void train(TrainingSet tset) throws ClassifierException
train in interface TrainableClassifiertrain in class AbstractClassifierClassifierExceptionpublic Classification classify(FeatureSet fs) throws ClassifierException
ClassifierExceptionCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.