Documentation of 'jsat.clustering.evaluation.AdjustedRandIndex' Java class
AdjustedRandIndex
jsat.clustering.evaluation

Class AdjustedRandIndex

  • All Implemented Interfaces:
    ClusterEvaluation


    public class AdjustedRandIndex
    extends java.lang.Object
    implements ClusterEvaluation
    Adjusted Rand Index (ARI) is a measure to evaluate a cluster based on the true class labels for the data set. The ARI normally returns a value in [-1, 1], where 0 indicates the clustering appears random, and 1 indicate the clusters perfectly match the class labels, and negative values indicate a clustering that is worse than random. To match the ClusterEvaluation interface, the value returned by evaluate will be 1.0-Adjusted Rand Index so the best value becomes 0.0 and the worse value becomes 2.0.
    NOTE: Because the ARI needs to know the true class labels, only evaluate(int[], jsat.DataSet) will work, since it provides the data set as an argument. The dataset given must be an instance of ClassificationDataSet
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      ClusterEvaluation clone() 
      double evaluate(int[] designations, DataSet dataSet)
      Evaluates the clustering of the given clustering.
      double evaluate(java.util.List<java.util.List<DataPoint>> dataSets)
      Evaluates the clustering of the given set of clusters.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AdjustedRandIndex

        public AdjustedRandIndex()
    • Method Detail

      • evaluate

        public double evaluate(int[] designations,
                               DataSet dataSet)
        Description copied from interface: ClusterEvaluation
        Evaluates the clustering of the given clustering.
        Specified by:
        evaluate in interface ClusterEvaluation
        Parameters:
        designations - the array that stores the cluster assignments for each data point in the data set
        dataSet - the data set that contains all data points
        Returns:
        a value in [0, Inf) that indicates the quality of the clustering.
      • evaluate

        public double evaluate(java.util.List<java.util.List<DataPoint>> dataSets)
        Description copied from interface: ClusterEvaluation
        Evaluates the clustering of the given set of clusters.
        Specified by:
        evaluate in interface ClusterEvaluation
        Parameters:
        dataSets - a list of lists, where the size of the first index indicates the the number of clusters, and the list at each index is the data points that make up each cluster.
        Returns:
        a value in [0, Inf) that indicates the quality of the clustering.

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.