SparseMatrix

class pyspark.ml.linalg.SparseMatrix(numRows, numCols, colPtrs, rowIndices, values, isTransposed=False)[source]

Sparse Matrix stored in CSC format.

Methods

toArray()

Return a numpy.ndarray

toDense()

Methods Documentation

toArray()[source]

Return a numpy.ndarray

toDense()[source]