e6fc7321390d14bb7757ecaec70428a548ced254,librosa/segment.py,,recurrence_matrix,#,52

Before Change


            R[i, j] = True

    // symmetrize
    if symmetric:
        R = R * R.T

    return R 

def structure_feature(R, pad=True):
    """Compute the structure feature from a recurrence matrix.

After Change


        // symmetrize
        R = R * R.T
    elif mode == "gaussian":
        R = np.exp( -0.5 * D / k)

    return R 

def structure_feature(R, pad=True):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: librosa/librosa
Commit Name: e6fc7321390d14bb7757ecaec70428a548ced254
Time: 2013-07-03
Author: brm2132@columbia.edu
File Name: librosa/segment.py
Class Name:
Method Name: recurrence_matrix


Project Name: maciejkula/spotlight
Commit Name: fde2f66676f960782c993f7148927c4a4197ab10
Time: 2017-06-27
Author: maciej.kula@gmail.com
File Name: spotlight/factorization/explicit.py
Class Name: ExplicitFactorizationModel
Method Name: fit


Project Name: rusty1s/pytorch_geometric
Commit Name: a27d95173d560a536480ef86ce18640bb6ee95b8
Time: 2021-01-14
Author: matthias.fey@tu-dortmund.de
File Name: torch_geometric/utils/softmax.py
Class Name:
Method Name: softmax