Top Description Methods
javax.visrec.ml.classification

public Interface Classifier<T, R>

Known Direct Subinterfaces
javax.visrec.ml.classification.ImageClassifier, javax.visrec.ml.classification.MultiClassClassifier, javax.visrec.ml.classification.BinaryClassifier
Known Direct Implementers
javax.visrec.ml.classification.EnsambleClassifier
Annotations
@FunctionalInterface
Type Parameters
<T>
type of input objects to classify (eg. User, Product, Transaction, Image, etc.)
<R>
type of classification result (String, Enum, custom class).

Generic classifier interface, that all classifiers should implement, and it provides a method to classify given instances of some class. Each category/type has corresponding label or class, which can be String, Enum or custom user defined class. Machine learning based classifier can learn from examples how to determine a category of an input object with high degree of confidence.

Implementations should specify input type of instances that are classified, and type of the returned vales .

Usually implementations predict category of instances with some probability, and cannot guarantee 100% accuracy.

Since
1.0
See Also
BinaryClassifier, MultiClassClassifier, ImageClassifier, Classifiable

Method Summary

Modifier and TypeMethod and Description
public R

Returns:

classification results for the specified instance
classify
(T
some instance to classify
input
)

Classifies specified input instance of type T and returns classification results of type R.

Method Detail

classifyback to summary
public R classify(T input) throws ClassificationException

Classifies specified input instance of type T and returns classification results of type R.

Parameters
input:T

some instance to classify

Returns:R

classification results for the specified instance

Exceptions
ClassificationException:
if the input could not be classified