ac92dbec0facc37d2efa9e208c107055e081fe24,tensorly/backend/core.py,Backend,truncated_svd,#Backend#Any#Any#,798

Before Change


        else:
            min_dim = dim_2

        if n_eigenvecs is None or n_eigenvecs > min_dim:
            full_matrices = True
        else:
            full_matrices = False

        U, S, V = self.svd(matrix)
        U, S, V = U[:, :n_eigenvecs], S[:n_eigenvecs], V[:n_eigenvecs, :]
        return U, S, V

After Change



        full_matrices = (n_eigenvecs is None) or (n_eigenvecs > min_dim)

        U, S, V = self.svd(matrix, full_matrices=full_matrices)
        U, S, V = U[:, :n_eigenvecs], S[:n_eigenvecs], V[:n_eigenvecs, :]
        return U, S, V

    index = Index()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: tensorly/tensorly
Commit Name: ac92dbec0facc37d2efa9e208c107055e081fe24
Time: 2020-12-24
Author: ameyer@ucla.edu
File Name: tensorly/backend/core.py
Class Name: Backend
Method Name: truncated_svd


Project Name: tensorly/tensorly
Commit Name: 83bf4723991475bd9a86705f25f4250b2145bfb5
Time: 2019-08-01
Author: kingsj0405@gmail.com
File Name: tensorly/backend/core.py
Class Name: Backend
Method Name: partial_svd


Project Name: tensorly/tensorly
Commit Name: 4fd099c5cfc5c4b682c0778312d4cb60a33f08a8
Time: 2019-12-04
Author: kingsj0405@gmail.com
File Name: tensorly/backend/core.py
Class Name: Backend
Method Name: partial_svd