Class SparkParamservUtils


  • public class SparkParamservUtils
    extends Object
    • Constructor Detail

      • SparkParamservUtils

        public SparkParamservUtils()
    • Method Detail

      • assembleTrainingData

        public static org.apache.spark.api.java.JavaPairRDD<Long,​scala.Tuple2<MatrixBlock,​MatrixBlock>> assembleTrainingData​(org.apache.spark.api.java.JavaPairRDD<MatrixIndexes,​MatrixBlock> featuresRDD,
                                                                                                                                         org.apache.spark.api.java.JavaPairRDD<MatrixIndexes,​MatrixBlock> labelsRDD)
        Assemble the matrix of features and labels according to the rowID
        Parameters:
        featuresRDD - indexed features matrix block
        labelsRDD - indexed labels matrix block
        Returns:
        Assembled rdd with rowID as key while matrix of features and labels as value (rowID -> features, labels)