jsat.classifiers
Class DDAG
- java.lang.Object
-
- jsat.classifiers.OneVSOne
-
- jsat.classifiers.DDAG
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, Classifier, Parameterized
public class DDAG extends OneVSOne
Decision Directed Acyclic Graph (DDAG) classifier. DDAG extends binary decision classifiers into multi-class decision classifiers. UnlikeOneVSOne, DDAG results are hard classification decisions, and will not give probabilistic estimates. Accuracy is often very similar, but DDAG classification speed can be significantly faster, as it does not evaluate all possible combinations of classifiers.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description DDAG(Classifier baseClassifier)Creates a new DDAG classifier to extend a binary classifier to handle multi-class problems.DDAG(Classifier baseClassifier, boolean concurrentTrain)Creates a new DDAG classifier to extend a binary classifier to handle multi-class problems.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description CategoricalResultsclassify(DataPoint data)Performs classification on the given data point.DDAGclone()-
Methods inherited from class jsat.classifiers.OneVSOne
isConcurrentTraining, setConcurrentTraining, supportsWeightedData, train
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jsat.classifiers.Classifier
train
-
Methods inherited from interface jsat.parameters.Parameterized
getParameter, getParameters
-
-
-
-
Constructor Detail
-
DDAG
public DDAG(Classifier baseClassifier, boolean concurrentTrain)
Creates a new DDAG classifier to extend a binary classifier to handle multi-class problems.- Parameters:
baseClassifier- the binary classifier to extendconcurrentTrain- true to have training of individual classifiers occur in parallel, false to have them use their native parallel training method.
-
DDAG
public DDAG(Classifier baseClassifier)
Creates a new DDAG classifier to extend a binary classifier to handle multi-class problems.- Parameters:
baseClassifier- the binary classifier to extend
-
-
Method Detail
-
classify
public CategoricalResults classify(DataPoint data)
Description copied from interface:ClassifierPerforms classification on the given data point.- Specified by:
classifyin interfaceClassifier- Overrides:
classifyin classOneVSOne- Parameters:
data- the data point to classify- Returns:
- the results of the classification.
-
clone
public DDAG clone()
- Specified by:
clonein interfaceClassifier- Overrides:
clonein classOneVSOne
-
-
DataMelt 3.0 © DataMelt by jWork.ORG