a1a0caf27341fd560101ae643bb7df1dc4dfcf46,statsmodels/stats/tests/test_corrpsd.py,Test_Factor,test_corr_nearest_factor_sparse,#Test_Factor#Any#,309

Before Change


        // Generate a test matrix of factors
        X = np.zeros((d, dm), dtype=np.float64)
        x = np.linspace(0, 2 * np.pi, d)
        np.random.seed(10)
        for j in range(dm):
            X[:, j] = np.sin(x * (j + 1)) + 1e-10 * np.random.randn(d)

        // Get the correlation matrix

After Change


                pytest.xfail("Known to randomly fail on Win32")
            // Some debugging information for CI runs that randomly fail
            locs = np.where(~np.isclose(mat_dense, mat_sparse, rtol=.25, atol=1e-3))
            print(mat_sparse[locs])
            print(mat_dense[locs])
            raise err

    // Test on a quadratic function.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: statsmodels/statsmodels
Commit Name: a1a0caf27341fd560101ae643bb7df1dc4dfcf46
Time: 2020-07-02
Author: kevin.k.sheppard@gmail.com
File Name: statsmodels/stats/tests/test_corrpsd.py
Class Name: Test_Factor
Method Name: test_corr_nearest_factor_sparse


Project Name: deepchem/deepchem
Commit Name: 2350e18231a67fa9d795fe7a16919b344a4b4ce5
Time: 2017-02-05
Author: bharath.ramsundar@gmail.com
File Name: examples/factors/FACTORS_correlations.py
Class Name:
Method Name:


Project Name: nipy/dipy
Commit Name: 97dff201af5dc5564e587258dc411e623b95ca52
Time: 2016-04-19
Author: s.p.l.meesters@tue.nl
File Name: dipy/tracking/tests/test_fbc.py
Class Name:
Method Name: test_fbc