738bfb1c560ff4e349f5083fc1f81a54e4be4980,ot/da.py,BaseTransport,inverse_transform,#BaseTransport#Any#Any#Any#Any#,1176
Before Change
transp_Xt = np.dot(transp_, self.Xs)
else:
// perform out of sample mapping
print("Warning: out of sample mapping not yet implemented")
print("input data will be returned")
transp_Xt = Xt
return transp_Xt
After Change
else:
// perform out of sample mapping
D0 = dist(Xt, self.Xt)
idx = np.argmin(D0, axis=1)
// transport the target samples
transp_ = self.Coupling_.T / np.sum(self.Coupling_, 0)[:, None]
transp_[~ np.isfinite(transp_)] = 0
transp_Xt_ = np.dot(transp_, self.Xs)
// define the transported points
transp_Xt = transp_Xt_[idx, :] + Xt - self.Xt[idx, :]
return transp_Xt
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 27
Instances
Project Name: rflamary/POT
Commit Name: 738bfb1c560ff4e349f5083fc1f81a54e4be4980
Time: 2017-08-04
Author: stan.chambon@gmail.com
File Name: ot/da.py
Class Name: BaseTransport
Method Name: inverse_transform
Project Name: rflamary/POT
Commit Name: b8672f67639e9daa3f91e555581256f984115f56
Time: 2017-09-01
Author: stan.chambon@gmail.com
File Name: ot/da.py
Class Name: BaseTransport
Method Name: inverse_transform
Project Name: rflamary/POT
Commit Name: 738bfb1c560ff4e349f5083fc1f81a54e4be4980
Time: 2017-08-04
Author: stan.chambon@gmail.com
File Name: ot/da.py
Class Name: BaseTransport
Method Name: inverse_transform
Project Name: rflamary/POT
Commit Name: 738bfb1c560ff4e349f5083fc1f81a54e4be4980
Time: 2017-08-04
Author: stan.chambon@gmail.com
File Name: ot/da.py
Class Name: BaseTransport
Method Name: transform
Project Name: rflamary/POT
Commit Name: b8672f67639e9daa3f91e555581256f984115f56
Time: 2017-09-01
Author: stan.chambon@gmail.com
File Name: ot/da.py
Class Name: BaseTransport
Method Name: transform