Package org.encog.ml.kmeans

Examples of org.encog.ml.kmeans.KMeansClustering.iteration()


      set.add(new BasicMLData(element));
    }

    final KMeansClustering kmeans = new KMeansClustering(2, set);

    kmeans.iteration(100);
    System.out.println("Final WCSS: " + kmeans.getWCSS());

    // Display the cluster
    int i = 1;
    for (final MLCluster cluster : kmeans.getClusters()) {
View Full Code Here


    resetStatus();

    final KMeansClustering cluster = new KMeansClustering(clusters,
        this.data);
    cluster.iteration(iterations);

    int clusterNum = 0;
    for (final MLCluster cl : cluster.getClusters()) {
      for (final MLData item : cl.getData()) {
        final ClusterRow row = (ClusterRow) item;
View Full Code Here

    resetStatus();

    final KMeansClustering cluster = new KMeansClustering(clusters,
        this.data);
    cluster.iteration(iterations);

    int clusterNum = 0;
    for (final MLCluster cl : cluster.getClusters()) {
      for (final MLData item : cl.getData()) {
        final int clsIndex = item.size();
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.