DenseMatrix#
- class pyspark.mllib.linalg.DenseMatrix(numRows, numCols, values, isTransposed=False)[source]#
Column-major dense matrix.
Methods
asML()Convert this matrix to the new mllib-local representation.
toArray()Return an numpy.ndarray
toSparse()Convert to SparseMatrix
Methods Documentation
- asML()[source]#
Convert this matrix to the new mllib-local representation. This does NOT copy the data; it copies references.
New in version 2.0.0.
- Returns