Interface Classifier

All Known Subinterfaces:
Buildable, FormClassifier

public interface Classifier
Base interface for classifier implementations.
  • Method Details

    • classify

      ClassificationResult<Integer> classify(Instance instance)
      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

      List<ClassificationResult<Integer>> classifications(Instance instance)
      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