Class KMeansCompute
java.lang.Object
org.apache.wayang.ml4all.abstraction.api.LogicalOperator
org.apache.wayang.ml4all.abstraction.api.Compute<Tuple2<Integer,Tuple2<Integer,double[]>>,double[]>
org.apache.wayang.ml4all.algorithms.kmeans.KMeansCompute
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaggregate
(Tuple2<Integer, Tuple2<Integer, double[]>> input1, Tuple2<Integer, Tuple2<Integer, double[]>> input2) Aggregates the output of the process() method to use in a group byprocess
(double[] input, ML4allModel model) Performs a computation at the data unit granularityMethods inherited from class org.apache.wayang.ml4all.abstraction.api.LogicalOperator
finalise, initialise
-
Constructor Details
-
KMeansCompute
public KMeansCompute()
-
-
Method Details
-
process
Description copied from class:Compute
Performs a computation at the data unit granularity -
aggregate
public Tuple2<Integer,Tuple2<Integer, aggregatedouble[]>> (Tuple2<Integer, Tuple2<Integer, double[]>> input1, Tuple2<Integer, Tuple2<Integer, double[]>> input2) Description copied from class:Compute
Aggregates the output of the process() method to use in a group by
-