# SingularValueDecomposition¶

class pyspark.mllib.linalg.distributed.SingularValueDecomposition(java_model)[source]

Represents singular value decomposition (SVD) factors.

New in version 2.2.0.

Methods

 call(name, *a) Call method of java_model

Attributes

 U Returns a distributed matrix whose columns are the left singular vectors of the SingularValueDecomposition if computeU was set to be True. V Returns a DenseMatrix whose columns are the right singular vectors of the SingularValueDecomposition. s Returns a DenseVector with singular values in descending order.

Methods Documentation

call(name, *a)

Call method of java_model

Attributes Documentation

U

Returns a distributed matrix whose columns are the left singular vectors of the SingularValueDecomposition if computeU was set to be True.

New in version 2.2.0.

V

Returns a DenseMatrix whose columns are the right singular vectors of the SingularValueDecomposition.

New in version 2.2.0.

s

Returns a DenseVector with singular values in descending order.

New in version 2.2.0.