|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.mahout.clustering.evaluation.ClusterEvaluator
public class ClusterEvaluator
Constructor Summary | |
---|---|
ClusterEvaluator(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.Path clustersIn)
Initialize a new instance from job information |
|
ClusterEvaluator(Map<Integer,List<VectorWritable>> representativePoints,
List<Cluster> clusters,
DistanceMeasure measure)
For testing only |
Method Summary | |
---|---|
double |
interClusterDensity()
Computes the inter-cluster density as defined in "Mahout In Action" |
double |
intraClusterDensity()
Computes the intra-cluster density as the average distance of the representative points from each other |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClusterEvaluator(Map<Integer,List<VectorWritable>> representativePoints, List<Cluster> clusters, DistanceMeasure measure)
representativePoints
- a Mapclusters
- a Mapmeasure
- an appropriate DistanceMeasurepublic ClusterEvaluator(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.Path clustersIn) throws ClassNotFoundException, InstantiationException, IllegalAccessException, IOException
conf
- a JobConf with appropriate parametersclustersIn
- a String path to the input clusters directory
ClassNotFoundException
InstantiationException
IllegalAccessException
IOException
Method Detail |
---|
public double interClusterDensity()
public double intraClusterDensity()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |