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

Before Change


        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


        M = M / np.median(M)

        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: 4

Non-data size: 3

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: scipy/scipy
Commit Name: f5117a0327aa8fc82bcdec33ce6361288c16eddf
Time: 2017-01-20
Author: christian.haggstrom@orexplore.com
File Name: scipy/ndimage/interpolation.py
Class Name:
Method Name: zoom


Project Name: sebp/scikit-survival
Commit Name: 09fb8c1e8fa60fd1a8cd341cc502d8ecdd2d1dd6
Time: 2020-07-02
Author: sebp@k-d-w.org
File Name: sksurv/nonparametric.py
Class Name:
Method Name: kaplan_meier_estimator


Project Name: fgnt/pb_bss
Commit Name: 036267bd86f546e7ea5d994501b2e5761c294c61
Time: 2017-12-04
Author: heitkaemper@nt.upb.de
File Name: nt/speech_enhancement/beamformer.py
Class Name:
Method Name: blind_analytic_normalization