public class AdjustedRandIndex extends Object implements ClusterEvaluation
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.
evaluate(int[], jsat.DataSet)
will work, since it provides the data
set as an argument. The dataset given must be an instance of
ClassificationDataSet
Constructor and Description |
---|
AdjustedRandIndex() |
Modifier and Type | Method and Description |
---|---|
ClusterEvaluation |
clone() |
double |
evaluate(int[] designations,
DataSet dataSet)
Evaluates the clustering of the given clustering.
|
double |
evaluate(List<List<DataPoint>> dataSets)
Evaluates the clustering of the given set of clusters.
|
public double evaluate(int[] designations, DataSet dataSet)
ClusterEvaluation
evaluate
in interface ClusterEvaluation
designations
- the array that stores the cluster assignments for
each data point in the data setdataSet
- the data set that contains all data pointspublic double evaluate(List<List<DataPoint>> dataSets)
ClusterEvaluation
evaluate
in interface ClusterEvaluation
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.public ClusterEvaluation clone()
clone
in interface ClusterEvaluation
clone
in class Object
Copyright © 2017. All rights reserved.