e121356668a9823650457e41c8e5ce2b6c1ee95d,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).astype(np.float)
X_filtered = librosa.decompose.nn_filter(X, rec=rec)
// Normalize the recurrence matrix
rec = librosa.util.normalize(rec.toarray(), axis=1, norm=1)
assert np.allclose(X_filtered, (X.dot(rec.T)))
After 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
rec = librosa.util.normalize(rec.toarray().astype(np.float), axis=1, norm=1)
assert np.allclose(X_filtered, (X.dot(rec.T)))
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 2
Instances
Project Name: librosa/librosa
Commit Name: e121356668a9823650457e41c8e5ce2b6c1ee95d
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_rec_sparse
Project Name: librosa/librosa
Commit Name: e121356668a9823650457e41c8e5ce2b6c1ee95d
Time: 2017-10-10
Author: brian.mcfee@nyu.edu
File Name: tests/test_decompose.py
Class Name:
Method Name: test_nn_filter_mean_rec
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