Package org.apache.nemo.examples.beam
Class AlternatingLeastSquare.UpdateUserAndItemMatrix
- java.lang.Object
-
- org.apache.beam.sdk.transforms.PTransform<inputT,outputT>
-
- org.apache.nemo.compiler.frontend.beam.transform.LoopCompositeTransform<org.apache.beam.sdk.values.PCollection<org.apache.beam.sdk.values.KV<java.lang.Integer,float[]>>,org.apache.beam.sdk.values.PCollection<org.apache.beam.sdk.values.KV<java.lang.Integer,float[]>>>
-
- org.apache.nemo.examples.beam.AlternatingLeastSquare.UpdateUserAndItemMatrix
-
- All Implemented Interfaces:
java.io.Serializable
,org.apache.beam.sdk.transforms.display.HasDisplayData
- Enclosing class:
- AlternatingLeastSquare
public static final class AlternatingLeastSquare.UpdateUserAndItemMatrix extends LoopCompositeTransform<org.apache.beam.sdk.values.PCollection<org.apache.beam.sdk.values.KV<java.lang.Integer,float[]>>,org.apache.beam.sdk.values.PCollection<org.apache.beam.sdk.values.KV<java.lang.Integer,float[]>>>
Composite transform that wraps the transforms inside the loop. The loop updates the user matrix and the item matrix in each iteration.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.beam.sdk.values.PCollection<org.apache.beam.sdk.values.KV<java.lang.Integer,float[]>>
expand(org.apache.beam.sdk.values.PCollection<org.apache.beam.sdk.values.KV<java.lang.Integer,float[]>> itemMatrix)
-
-
-
Method Detail
-
expand
public org.apache.beam.sdk.values.PCollection<org.apache.beam.sdk.values.KV<java.lang.Integer,float[]>> expand(org.apache.beam.sdk.values.PCollection<org.apache.beam.sdk.values.KV<java.lang.Integer,float[]>> itemMatrix)
- Specified by:
expand
in classorg.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PCollection<org.apache.beam.sdk.values.KV<java.lang.Integer,float[]>>,org.apache.beam.sdk.values.PCollection<org.apache.beam.sdk.values.KV<java.lang.Integer,float[]>>>
-
-