def _svd ( cls , matrix , num_concepts = 5 ) : u , s , v = svds ( matrix , k = num_concepts ) return u , s , v
svd matrix completion python
Perform singular value decomposition for dimensionality reduction of the input matrix .
def _svd(cls, matrix, num_concepts=5):
        """
        Perform singular value decomposition for dimensionality reduction of the input matrix.
        """
        u, s, v = svds(matrix, k=num_concepts)
        return u, s, v