Matrix

class pyspark.mllib.linalg.Matrix(numRows: int, numCols: int, isTransposed: bool = False)

Methods

asML()

Convert this matrix to the new mllib-local representation.

toArray()

Returns its elements in a NumPy ndarray.

Methods Documentation

asML()pyspark.ml.linalg.Matrix

Convert this matrix to the new mllib-local representation. This does NOT copy the data; it copies references.

toArray() → numpy.ndarray

Returns its elements in a NumPy ndarray.