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