public class AODE extends BaseUpdateableClassifier
ODE
classifier are created, each with a dependence on a different
attribute. The results of these classifiers is averaged to produce a final
result. The construction time is O(n d2). Because of this
extra dependence requirement, the implementation only allows for categorical
features. Modifier and Type | Field and Description |
---|---|
protected ODE[] |
odes |
protected CategoricalData |
predicting |
Modifier | Constructor and Description |
---|---|
|
AODE()
Creates a new AODE classifier.
|
protected |
AODE(AODE toClone)
Creates a copy of an AODE classifier
|
Modifier and Type | Method and Description |
---|---|
CategoricalResults |
classify(DataPoint data)
Performs classification on the given data point.
|
AODE |
clone() |
double |
getM()
Returns the minimum needed score
|
void |
setM(double m)
Sets the minimum prior observation value needed for an attribute
combination to have enough support to be included in the final estimate.
|
void |
setUp(CategoricalData[] categoricalAttributes,
int numericAttributes,
CategoricalData predicting)
Prepares the classifier to begin learning from its
UpdateableClassifier.update(jsat.classifiers.DataPoint, int) method. |
boolean |
supportsWeightedData()
Indicates whether the model knows how to train using weighted data points.
|
void |
trainC(ClassificationDataSet dataSet,
ExecutorService threadPool)
Trains the classifier and constructs a model for classification using the
given data set.
|
void |
update(DataPoint dataPoint,
int targetClass)
Updates the classifier by giving it a new data point to learn from.
|
getEpochs, setEpochs, trainC, trainEpochs
protected CategoricalData predicting
protected ODE[] odes
public AODE()
protected AODE(AODE toClone)
toClone
- the classifier to clonepublic AODE clone()
clone
in interface Classifier
clone
in interface UpdateableClassifier
clone
in class BaseUpdateableClassifier
public void setUp(CategoricalData[] categoricalAttributes, int numericAttributes, CategoricalData predicting)
UpdateableClassifier
UpdateableClassifier.update(jsat.classifiers.DataPoint, int)
method.categoricalAttributes
- an array containing the categorical
attributes that will be in each data pointnumericAttributes
- the number of numeric attributes that will be in
each data pointpredicting
- the information for the target class that will be
predictedpublic void trainC(ClassificationDataSet dataSet, ExecutorService threadPool)
Classifier
trainC
in interface Classifier
trainC
in class BaseUpdateableClassifier
dataSet
- the data set to train onthreadPool
- the source of threads to use.public void update(DataPoint dataPoint, int targetClass)
UpdateableClassifier
dataPoint
- the data point to learntargetClass
- the target class of the data pointpublic CategoricalResults classify(DataPoint data)
Classifier
data
- the data point to classifypublic boolean supportsWeightedData()
Classifier
public void setM(double m)
m
- the minimum needed scorepublic double getM()
Copyright © 2017. All rights reserved.