jsat.clustering.evaluation
Class IntraClusterSumEvaluation
- java.lang.Object
-
- jsat.clustering.evaluation.ClusterEvaluationBase
-
- jsat.clustering.evaluation.IntraClusterSumEvaluation
-
- All Implemented Interfaces:
- ClusterEvaluation
public class IntraClusterSumEvaluation extends ClusterEvaluationBase
Evaluates a cluster based on the sum of scores for someIntraClusterEvaluationapplied to each cluster.
-
-
Constructor Summary
Constructors Constructor and Description IntraClusterSumEvaluation(IntraClusterEvaluation ice)Creates a new cluster evaluation that returns the sum of the intra cluster evaluationsIntraClusterSumEvaluation(IntraClusterSumEvaluation toCopy)Copy constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description IntraClusterSumEvaluationclone()doubleevaluate(java.util.List<java.util.List<DataPoint>> dataSets)Evaluates the clustering of the given set of clusters.-
Methods inherited from class jsat.clustering.evaluation.ClusterEvaluationBase
evaluate
-
-
-
-
Constructor Detail
-
IntraClusterSumEvaluation
public IntraClusterSumEvaluation(IntraClusterEvaluation ice)
Creates a new cluster evaluation that returns the sum of the intra cluster evaluations- Parameters:
ice- the intra cluster evaluation to use
-
IntraClusterSumEvaluation
public IntraClusterSumEvaluation(IntraClusterSumEvaluation toCopy)
Copy constructor- Parameters:
toCopy- the object to copy
-
-
Method Detail
-
evaluate
public double evaluate(java.util.List<java.util.List<DataPoint>> dataSets)
Description copied from interface:ClusterEvaluationEvaluates the clustering of the given set of clusters.- 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.
-
clone
public IntraClusterSumEvaluation clone()
- Specified by:
clonein interfaceClusterEvaluation- Specified by:
clonein classClusterEvaluationBase
-
-
DataMelt 3.0 © DataMelt by jWork.ORG