6aa0f1f4e275098948d4b312530119e5d95b8884,ot/da.py,,jcpot_barycenter,#Any#Any#Any#Any#Any#Any#Any#Any#Any#,749

Before Change


        // build the corresponding D matrix
        D1 = np.zeros((nbclasses, nb_elem))
        D2 = np.zeros((nbclasses, nb_elem))
        classes_d = np.zeros(nbclasses)

        classes_d[np.unique(Ys[d]).astype(int)] = 1
        dom["classes"] = classes_d

        for c in classes:
            nbelemperclass = np.sum(Ys[d] == c)

After Change



        K = np.empty(M.shape, dtype=M.dtype)
        np.divide(M, -reg, out=K)
        np.exp(K, out=K)
        dom["K"] = K

        all_domains.append(dom)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: rflamary/POT
Commit Name: 6aa0f1f4e275098948d4b312530119e5d95b8884
Time: 2020-03-31
Author: ievgen.redko@univ-st-etienne.fr
File Name: ot/da.py
Class Name:
Method Name: jcpot_barycenter


Project Name: uber/pyro
Commit Name: d7148f390db12a3f7e4b43ab584648b2e4a1882d
Time: 2020-11-07
Author: fritz.obermeyer@gmail.com
File Name: pyro/distributions/spanning_tree.py
Class Name: SpanningTree
Method Name: log_partition_function


Project Name: nipy/dipy
Commit Name: ad567a1b6694efecf5b52c013b7f507ca57d3df3
Time: 2016-02-02
Author: mrbago@gmail.com
File Name: dipy/reconst/dti.py
Class Name:
Method Name: tensor_prediction