public class NormalizedMutualInformation extends Object implements ClusterEvaluation
ClusterEvaluation
interface, the value returned by evaluate will
be 1.0-NMI .
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 |
---|
NormalizedMutualInformation() |
Modifier and Type | Method and Description |
---|---|
NormalizedMutualInformation |
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 NormalizedMutualInformation clone()
clone
in interface ClusterEvaluation
clone
in class Object
Copyright © 2017. All rights reserved.