Class AlternatingLeastSquareInefficient.UpdateUserAndItemMatrix

  • All Implemented Interfaces:
    Serializable, org.apache.beam.sdk.transforms.display.HasDisplayData
    Enclosing class:
    AlternatingLeastSquareInefficient

    public static final class AlternatingLeastSquareInefficient.UpdateUserAndItemMatrix
    extends LoopCompositeTransform<org.apache.beam.sdk.values.PCollection<org.apache.beam.sdk.values.KV<Integer,​float[]>>,​org.apache.beam.sdk.values.PCollection<org.apache.beam.sdk.values.KV<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
    • Field Summary

      • Fields inherited from class org.apache.beam.sdk.transforms.PTransform

        name
    • 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<Integer,​float[]>> expand​(org.apache.beam.sdk.values.PCollection<org.apache.beam.sdk.values.KV<Integer,​float[]>> itemMatrix)  
      • Methods inherited from class org.apache.beam.sdk.transforms.PTransform

        compose, compose, getAdditionalInputs, getDefaultOutputCoder, getDefaultOutputCoder, getDefaultOutputCoder, getKindString, getName, populateDisplayData, toString, validate
    • Method Detail

      • expand

        public org.apache.beam.sdk.values.PCollection<org.apache.beam.sdk.values.KV<Integer,​float[]>> expand​(org.apache.beam.sdk.values.PCollection<org.apache.beam.sdk.values.KV<Integer,​float[]>> itemMatrix)
        Specified by:
        expand in class org.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PCollection<org.apache.beam.sdk.values.KV<Integer,​float[]>>,​org.apache.beam.sdk.values.PCollection<org.apache.beam.sdk.values.KV<Integer,​float[]>>>