public abstract class AbstractClassifier extends Object implements TrainableClassifier
Modifier and Type | Field and Description |
---|---|
protected ArrayList |
_weights
An array of WeighSet objects, one per class.
|
Constructor and Description |
---|
AbstractClassifier()
Construct an abstract classifier and instantiate its weight
array for features.
|
Modifier and Type | Method and Description |
---|---|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
classify
protected ArrayList _weights
public AbstractClassifier()
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
Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.