8111b1a80dde0202f9ae96f7598441218066e2db,innvestigate/tools/pattern.py,LinearPattern,compute_pattern,#LinearPattern#,118

Before Change


            numerator = mean_xy - mean_x * mean_y

            denumerator = np.dot(W2D.T, numerator)
            denumerator = np.diag(denumerator)
            A = safe_divide(numerator, denumerator[:, None])

        // update length
        //norm = np.diag(np.dot(W2D.T, A))[np.newaxis]

After Change


        EyEy = mean_y * mean_y
        cov_xy = mean_xy - ExEy

        w_cov_xy = np.diag(np.dot(W2D.T, cov_xy))
        A = safe_divide(cov_xy, w_cov_xy)

        // update length
        if True:
            norm = np.diag(np.dot(W2D.T, A))
            A = safe_divide(A, norm)

        // check pattern
        if False:
            tmp = np.diag(np.dot(W2D.T, A))
            print("pattern_check", W.shape, tmp.min(), tmp.max())

        return A.reshape(W.shape)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: albermax/innvestigate
Commit Name: 8111b1a80dde0202f9ae96f7598441218066e2db
Time: 2018-02-20
Author: alber.maximilian@gmail.com
File Name: innvestigate/tools/pattern.py
Class Name: LinearPattern
Method Name: compute_pattern


Project Name: albermax/innvestigate
Commit Name: 8111b1a80dde0202f9ae96f7598441218066e2db
Time: 2018-02-20
Author: alber.maximilian@gmail.com
File Name: innvestigate/tools/pattern.py
Class Name: LinearPattern
Method Name: compute_pattern


Project Name: nipy/dipy
Commit Name: 72fe12417db94e40d5ca0f533813b9fb157cbaba
Time: 2015-07-08
Author: rafaelnh21@gmail.com
File Name: dipy/reconst/dki.py
Class Name:
Method Name: _wls_iter


Project Name: glm-tools/pyglmnet
Commit Name: fb4b9023f9ec516648d58b4ba2ecd8e241e21618
Time: 2016-11-16
Author: pavan.ramkumar@gmail.com
File Name: pyglmnet/utils.py
Class Name:
Method Name: tikhonov_from_prior