Movatterモバイル変換


[0]ホーム

URL:


Skip to main content
Ctrl+K

Matrices#

classpyspark.mllib.linalg.Matrices[source]#

Methods

dense(numRows, numCols, values)

Create a DenseMatrix

fromML(mat)

Convert a matrix from the new mllib-local representation.

sparse(numRows, numCols, colPtrs, ...)

Create a SparseMatrix

Methods Documentation

staticdense(numRows,numCols,values)[source]#

Create a DenseMatrix

staticfromML(mat)[source]#

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

New in version 2.0.0.

Parameters
matpyspark.ml.linalg.Matrix
Returns
pyspark.mllib.linalg.Matrix
staticsparse(numRows,numCols,colPtrs,rowIndices,values)[source]#

Create a SparseMatrix


[8]ページ先頭

©2009-2025 Movatter.jp