f5810cd6963db4cd3af81364591a880b1fa9b706,librosa/decompose.py,,decompose,#,13

Before Change


    if transformer is None:
        transformer = sklearn.decomposition.NMF(n_components=n_components)

    activations = transformer.fit_transform(S.T)

    return (transformer.components_.T, activations.T)

def hpss(S, kernel_size=31, power=2.0, mask=False):

After Change


    if transformer is None:
        transformer = sklearn.decomposition.NMF(n_components=n_components)

    activations = transformer.fit_transform(S.T).T

    components = transformer.components_.T

    if sort:
        components, idx = librosa.util.axis_sort(components, index=True)
        activations = activations[idx]

    return components, activations

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: librosa/librosa
Commit Name: f5810cd6963db4cd3af81364591a880b1fa9b706
Time: 2014-06-03
Author: brm2132@columbia.edu
File Name: librosa/decompose.py
Class Name:
Method Name: decompose


Project Name: dirty-cat/dirty_cat
Commit Name: 32a04f05d122c63e0da3e6b03d65667b43be41b9
Time: 2021-02-02
Author: alexis.cvetkov-iliev@institutoptique.fr
File Name: dirty_cat/test/test_gap_encoder.py
Class Name:
Method Name: test_input_type


Project Name: IBM/AIF360
Commit Name: 59f85a9fd78286ce39b0f3de6af2cb6e50e799fa
Time: 2020-02-19
Author: hoffman.sc@gmail.com
File Name: aif360/sklearn/preprocessing/reweighing.py
Class Name: ReweighingMeta
Method Name: fit


Project Name: IBM/AIF360
Commit Name: 59f85a9fd78286ce39b0f3de6af2cb6e50e799fa
Time: 2020-02-19
Author: hoffman.sc@gmail.com
File Name: aif360/sklearn/tests/test_reweighing.py
Class Name:
Method Name: test_reweighing_sex