Interface ClassificationModel

  • All Superinterfaces:
    Model, Serializable
    All Known Implementing Classes:
    WekaClassificationModel

    public interface ClassificationModel
    extends Model
    Interface for classification models.
    Author:
    FracPete (fracpete at waikato dot ac dot nz)
    • Method Detail

      • classify

        String classify​(Row row)
                 throws Exception
        Returns the label for the given row.
        Parameters:
        row - the row to classify
        Returns:
        the class label
        Throws:
        Exception - if prediction fails
      • distribution

        double[] distribution​(Row row)
                       throws Exception
        Returns the class distribution for the given row.
        Parameters:
        row - the row to generate the class distribution for
        Returns:
        the class distribution
        Throws:
        Exception - if prediction fails