T
- the type of input objectpublic interface Classifier<T>
extends java.util.function.ToIntFunction<T>, java.util.function.ToDoubleFunction<T>, java.io.Serializable
Classification normally refers to a supervised procedure, i.e. a procedure that produces an inferred function to predict the output value of new instances based on a training set of pairs consisting of an input object and a desired output value. The inferred function is called a classifier if the output is discrete or a regression function if the output is continuous.
Modifier and Type | Method and Description |
---|---|
default double |
applyAsDouble(T x) |
default int |
applyAsInt(T x) |
default double |
f(T x)
Returns the real-valued decision function value.
|
int |
predict(T x)
Predicts the class label of an instance.
|
default int[] |
predict(T[] x)
Predicts the class labels of an array of instances.
|
int predict(T x)
x
- the instance to be classified.default double f(T x)
x
- the instance to be classified.default int[] predict(T[] x)
x
- the instances to be classified.default int applyAsInt(T x)
applyAsInt
in interface java.util.function.ToIntFunction<T>