Interface ClusteringModel

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

    public interface ClusteringModel
    extends Model
    Interface for clustering models.
    Version:
    $Revision$
    Author:
    FracPete (fracpete at waikato dot ac dot nz)
    • Method Detail

      • cluster

        int cluster​(Row row)
             throws Exception
        Returns the cluster index for the given row.
        Parameters:
        row - the row to classify
        Returns:
        the cluster index
        Throws:
        Exception - if prediction fails
      • distribution

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