75e78022d2df350ea220cee1b5e759ef9fc35a5b,test/test_gpu.py,,test_gpu_sinkhorn,#,20

Before Change


        b = rng.rand(n_samples, 100)
        time1 = time.time()
        transport = ot.da.OTDA_sinkhorn()
        transport.fit(a, b)
        G1 = transport.G
        time2 = time.time()
        transport = ot.gpu.da.OTDA_sinkhorn()
        transport.fit(a, b)

After Change


        a = rng.rand(n_samples // 4, 100)
        b = rng.rand(n_samples, 100)

        wa = ot.unif(n_samples // 4)
        wb = ot.unif(n_samples)

        M = ot.dist(a.copy(), b.copy())
        M2 = ot.gpu.dist(a.copy(), b.copy(), to_numpy=False)

        reg = 1

        G = ot.sinkhorn(wa, wb, M, reg)
        G1 = ot.gpu.sinkhorn(wa, wb, M, reg)

        np.testing.assert_allclose(G1, G, rtol=1e-10)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: rflamary/POT
Commit Name: 75e78022d2df350ea220cee1b5e759ef9fc35a5b
Time: 2018-09-24
Author: remi.flamary@gmail.com
File Name: test/test_gpu.py
Class Name:
Method Name: test_gpu_sinkhorn


Project Name: rflamary/POT
Commit Name: 75e78022d2df350ea220cee1b5e759ef9fc35a5b
Time: 2018-09-24
Author: remi.flamary@gmail.com
File Name: test/test_gpu.py
Class Name:
Method Name: test_gpu_sinkhorn_lpl1


Project Name: biolab/orange3
Commit Name: cdb5e9305ddcac7940caa9ee7532b80fa2f8c183
Time: 2017-05-12
Author: ales.erjavec@fri.uni-lj.si
File Name: Orange/projection/manifold.py
Class Name: MDS
Method Name: __call__