Package elki.classification
Class AbstractClassifier<O,R>
- java.lang.Object
-
- elki.classification.AbstractClassifier<O,R>
-
- Type Parameters:
O
- Input typeR
- Result type
- All Implemented Interfaces:
Algorithm
,Classifier<O>
- Direct Known Subclasses:
PriorProbabilityClassifier
public abstract class AbstractClassifier<O,R> extends java.lang.Object implements Classifier<O>
Abstract base class for algorithms.- Since:
- 0.7.0
- Author:
- Erich Schubert
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface elki.Algorithm
Algorithm.Utils
-
-
Constructor Summary
Constructors Constructor Description AbstractClassifier()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected double[]
alignLabels(java.util.List<ClassLabel> l1, double[] d1, java.util.Collection<ClassLabel> l2)
Align the labels for a label query.R
autorun(Database database)
Deprecated.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface elki.Algorithm
getInputTypeRestriction
-
Methods inherited from interface elki.classification.Classifier
buildClassifier, classify, model
-
-
-
-
Method Detail
-
autorun
@Deprecated public R autorun(Database database)
Deprecated.Description copied from interface:Algorithm
Try to auto-run the algorithm on a database by calling a method calledrun
, with an optionalDatabase
first, and with data relations as specified byAlgorithm.getInputTypeRestriction()
.
-
alignLabels
protected double[] alignLabels(java.util.List<ClassLabel> l1, double[] d1, java.util.Collection<ClassLabel> l2)
Align the labels for a label query.- Parameters:
l1
- List of reference labelsd1
- Probabilities for these labelsl2
- List of requested labels- Returns:
- Probabilities in desired output order
-
-