Movatterモバイル変換


[0]ホーム

URL:


Skip to main content
Ctrl+K

SparseMatrix#

classpyspark.mllib.linalg.SparseMatrix(numRows,numCols,colPtrs,rowIndices,values,isTransposed=False)[source]#

Sparse Matrix stored in CSC format.

Methods

asML()

Convert this matrix to the new mllib-local representation.

toArray()

Return an numpy.ndarray

toDense()

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
pyspark.ml.linalg.SparseMatrix
toArray()[source]#

Return an numpy.ndarray

toDense()[source]#

[8]ページ先頭

©2009-2025 Movatter.jp