SVD

SVD分为RowMatrix SVD API和IndexedRowMatrix SVD API两大类模型接口。

模型接口类别

函数接口

MLlib RowMatrix API

def computeSVD(

k: Int,

computeU: Boolean = false, rCond: Double = 1e-9):

SingularValueDecomposition[RowMatrix,Matrix]

MLlib

IndexedRowMatrix

API

def computeSVD(

k: Int,

computeU: Boolean = false, rCond: Double =

1e-9):SingularValueDecomposition[IndexedRowMatrix, Matrix]

MLlib RowMatrix API

MLlib IndexedRowMatrix API