84e56a0637f3194c5b1b160bd4f89ccd0ffe661d,ot/da.py,SinkhornLpl1Transport,fit,#SinkhornLpl1Transport#Any#Any#Any#Any#,1410

Before Change


            Returns self.
        

        if Xs is not None and Xt is not None and ys is not None:

            super(SinkhornLpl1Transport, self).fit(Xs, ys, Xt, yt)

            self.coupling_ = sinkhorn_lpl1_mm(
                a=self.mu_s, labels_a=ys, b=self.mu_t, M=self.cost_,
                reg=self.reg_e, eta=self.reg_cl, numItermax=self.max_iter,
                numInnerItermax=self.max_inner_iter, stopInnerThr=self.tol,
                verbose=self.verbose)

            return self
        else:
            print("POT-Warning")
            print("Please provide both Xs, Xt, ys arguments to fit method")


class SinkhornL1l2Transport(BaseTransport):
    Domain Adapatation OT method based on sinkhorn algorithm +

After Change


        

        // check the necessary inputs parameters are here
        if check_params(Xs=Xs, Xt=Xt, ys=ys):

            super(SinkhornLpl1Transport, self).fit(Xs, ys, Xt, yt)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 7

Instances


Project Name: rflamary/POT
Commit Name: 84e56a0637f3194c5b1b160bd4f89ccd0ffe661d
Time: 2017-09-01
Author: stan.chambon@gmail.com
File Name: ot/da.py
Class Name: SinkhornLpl1Transport
Method Name: fit


Project Name: rflamary/POT
Commit Name: c5d7c40c1d850879abd5f2c513afa1a2c5d5987e
Time: 2017-08-28
Author: stan.chambon@gmail.com
File Name: ot/da.py
Class Name: SinkhornLpl1Transport
Method Name: fit


Project Name: rflamary/POT
Commit Name: 84e56a0637f3194c5b1b160bd4f89ccd0ffe661d
Time: 2017-09-01
Author: stan.chambon@gmail.com
File Name: ot/da.py
Class Name: SinkhornL1l2Transport
Method Name: fit


Project Name: rflamary/POT
Commit Name: 84e56a0637f3194c5b1b160bd4f89ccd0ffe661d
Time: 2017-09-01
Author: stan.chambon@gmail.com
File Name: ot/da.py
Class Name: SinkhornLpl1Transport
Method Name: fit


Project Name: rflamary/POT
Commit Name: c5d7c40c1d850879abd5f2c513afa1a2c5d5987e
Time: 2017-08-28
Author: stan.chambon@gmail.com
File Name: ot/da.py
Class Name: SinkhornL1l2Transport
Method Name: fit