991a5474076867da93aebdbc41e00a882b3a1eb9,tests/test_decompose.py,,test_nn_filter_mean_rec_sparse,#,167

Before Change


    X = np.random.randn(10, 100)

    // Build a recurrence matrix, just for testing purposes
    rec = librosa.segment.recurrence_matrix(X, sparse=True)

    X_filtered = librosa.decompose.nn_filter(X, rec=rec)

    // Normalize the recurrence matrix

After Change


    X = np.random.randn(10, 100)

    // Build a recurrence matrix, just for testing purposes
    rec = librosa.segment.recurrence_matrix(X, sparse=True).astype(np.float)

    X_filtered = librosa.decompose.nn_filter(X, rec=rec)

    // Normalize the recurrence matrix
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: librosa/librosa
Commit Name: 991a5474076867da93aebdbc41e00a882b3a1eb9
Time: 2017-10-10
Author: brian.mcfee@nyu.edu
File Name: tests/test_decompose.py
Class Name:
Method Name: test_nn_filter_mean_rec_sparse


Project Name: librosa/librosa
Commit Name: 991a5474076867da93aebdbc41e00a882b3a1eb9
Time: 2017-10-10
Author: brian.mcfee@nyu.edu
File Name: tests/test_decompose.py
Class Name:
Method Name: test_nn_filter_mean


Project Name: librosa/librosa
Commit Name: 991a5474076867da93aebdbc41e00a882b3a1eb9
Time: 2017-10-10
Author: brian.mcfee@nyu.edu
File Name: tests/test_decompose.py
Class Name:
Method Name: test_nn_filter_mean_rec