Package org.apache.mahout.clustering

Examples of org.apache.mahout.clustering.Cluster.asJson()


        .getCenter(), dictionary, numTopFeatures);
    res.put("top_terms", topTerms);

    // get human-readable cluster representation
    Cluster cluster = clusterWritable.getValue();
    Map<String,Object> fmtStr = cluster.asJson(dictionary);
    res.put("cluster_id", cluster.getId());
    res.put("cluster", fmtStr);

    // get points
    List<Object> points = getPoints(cluster, dictionary);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.