Package com.groiss.ml.classifier
Interface Classifier
- All Known Subinterfaces:
Buildable
,FormClassifier
public interface Classifier
Base interface for classifier implementations.
-
Method Summary
Modifier and TypeMethodDescriptionclassifications
(Instance instance) Classify given instance and return the indexes of labels in descending order.The given instance gets classified based on the set class attribute.getName()
Returns a human readable name for this classifier implementation
-
Method Details
-
classify
The given instance gets classified based on the set class attribute. The index of the label is returned.- Parameters:
instance
- the instance of classify- Returns:
- index of classified label.
-
classifications
Classify given instance and return the indexes of labels in descending order.- Parameters:
instance
- the instance of classify- Returns:
- a list of indexes of labels ordered by the probability to occur.
-
getName
String getName()Returns a human readable name for this classifier implementation- Returns:
- a human readable name for this classifier implementation
-