Interface MatrixBlockFromFrame


  • public interface MatrixBlockFromFrame
    • Field Detail

      • LOG

        static final org.apache.commons.logging.Log LOG
    • Method Detail

      • convertToMatrixBlock

        static MatrixBlock convertToMatrixBlock​(FrameBlock frame,
                                                int k)
        Converts a frame block with arbitrary schema into a matrix block. Since matrix block only supports value type double, we do a best effort conversion of non-double types which might result in errors for non-numerical data.
        Parameters:
        frame - Frame block to convert
        k - The parallelization degree
        Returns:
        MatrixBlock
      • convertToMatrixBlock

        static MatrixBlock convertToMatrixBlock​(FrameBlock frame,
                                                MatrixBlock ret,
                                                int k)
        Converts a frame block with arbitrary schema into a matrix block. Since matrix block only supports value type double, we do a best effort conversion of non-double types which might result in errors for non-numerical data.
        Parameters:
        frame - FrameBlock to convert
        ret - The returned MatrixBlock
        k - The parallelization degree
        Returns:
        MatrixBlock