se.lth.cs.nlp.nlputils.ml
Class BinaryLinearClassifier<T>
java.lang.Object
se.lth.cs.nlp.nlputils.ml.Classifier<T>
se.lth.cs.nlp.nlputils.ml.BinaryNumericClassifier<T>
se.lth.cs.nlp.nlputils.ml.BinaryLinearClassifier<T>
- All Implemented Interfaces:
- Serializable
public class BinaryLinearClassifier<T>
- extends BinaryNumericClassifier<T>
A binary linear classifier.
- Author:
- Richard Johansson (richard@cs.lth.se)
- See Also:
- Serialized Form
Method Summary |
double |
apply(int[] indices)
Applies the discriminator function. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BinaryLinearClassifier
public BinaryLinearClassifier()
apply
public double apply(int[] indices)
- Description copied from class:
BinaryNumericClassifier
- Applies the discriminator function.
- Specified by:
apply
in class BinaryNumericClassifier<T>
- Parameters:
indices
- the sorted array of feature indices.
- Returns:
- the value of the discriminator function.