Package com.github.pmerienne.trident.ml.testing

Examples of com.github.pmerienne.trident.ml.testing.RandomFeaturesForClusteringSpout


      // Training stream
      TridentState kmeansState = toppology
        // Emit tuples with a instance containing an integer as label and 3
        // double features named (x0, x1 and x2)
        .newStream("samples", new RandomFeaturesForClusteringSpout())

        // Convert trident tuple to instance
        .each(new Fields("label", "x0", "x1", "x2"), new InstanceCreator<Integer>(), new Fields("instance"))

        // Update a 3 classes kmeans
View Full Code Here

TOP

Related Classes of com.github.pmerienne.trident.ml.testing.RandomFeaturesForClusteringSpout

Copyright © 2018 www.massapicom. 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.