Matrix

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

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[source]

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

toArray() → numpy.ndarray[source]

Returns its elements in a NumPy ndarray.