6ce049fae6ac83de1c88f2237308f315c84eb7e0,src/spn/experiments/layers/Vectorized.py,,sum_lambda,#Any#Any#,133

Before Change



        maxv = np.max(x[:, idx], axis=1, keepdims=True)
        np.einsum("ij,j->i", np.exp(x[:, idx] - maxv), layer.nodes[i].weights, out=ll[:, i])
        np.log(ll[:, i], out=ll[:, i])
        ll[:, i] += maxv[:, 0]

    return ll

After Change


    // return ll
    for i, idx in enumerate(layer.scope_matrix):
        // continue
        ll[:, i] = logsumexp(x[:, idx.tocsr().indices], b=layer.nodes[i].weights, axis=1)

    return ll

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: SPFlow/SPFlow
Commit Name: 6ce049fae6ac83de1c88f2237308f315c84eb7e0
Time: 2020-01-29
Author: molina@cs.tu-darmstadt.de
File Name: src/spn/experiments/layers/Vectorized.py
Class Name:
Method Name: sum_lambda


Project Name: pavlin-policar/openTSNE
Commit Name: 45c320f861d7a08ab055c3b6fe3101d0a809dd7d
Time: 2018-10-28
Author: pavlin.g.p@gmail.com
File Name: fastTSNE/tsne.py
Class Name: TSNEEmbedding
Method Name: prepare_partial


Project Name: lmcinnes/umap
Commit Name: d34494bf35b1c23abb6967768b39eda9d35a84d6
Time: 2018-10-01
Author: joseph.m.courtney@gmail.com
File Name: umap/umap_.py
Class Name: UMAP
Method Name: inverse_transform