Top Description Methods
javax.visrec.ml.classification

public Interface Classifiable<T, C>

Type Parameters
<T>
Type of input for classifier
<C>
Type of categories/labels (could be anything like enum, String, Integer or user defined class)

Classes that implement this interface enable direct classification of Java objects, no need to manually convert to data structures used internally by ML. This interface simplifies usage and integration of machine learning based classifiers with Java objects. It should be implemented by classes whose objects we want to be able to classify. Instances of classes that implement this interface can be used as examples to build machine learning based classifiers. Typical implementation scenario is to wrap domain specific class and implement this interface. Classifiable can be classfied by the Classifier (with the same T and C)

Method Summary

Modifier and TypeMethod and Description
public T
getClassifierInput()

Returns input for classifier.

public C
getTargetClass()

Returns target class for classifier.

Method Detail

getClassifierInputback to summary
public T getClassifierInput()

Returns input for classifier. Implementation of this method should convert attributes of an object for specific classifier.

getTargetClassback to summary
public C getTargetClass()

Returns target class for classifier.