d793f1f73e6f816458d8b307762675aa9fa84d22,ot/da.py,BaseTransport,fit,#BaseTransport#Any#Any#Any#Any#,1069
Before Change
for j in idt[0]:
self.Cost[ids[0], j] = 0
else:
print("Warning: using unsupervised mode\
\nto use semisupervised mode, please provide ys and yt")
pass
// distribution estimation
self.mu_s = self.distribution_estimation(Xs)
After Change
// and labeled target samples occupy the first columns
classes = np.unique(ys)
for c in classes:
idx_s = np.where((ys != c) & (ys != -1))
idx_t = np.where(yt == c)
// all the coefficients corresponding to a source sample
// and a target sample :
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: rflamary/POT
Commit Name: d793f1f73e6f816458d8b307762675aa9fa84d22
Time: 2017-08-04
Author: stan.chambon@gmail.com
File Name: ot/da.py
Class Name: BaseTransport
Method Name: fit
Project Name: rflamary/POT
Commit Name: 62b40a9993e9ccca27d1677aa1294fff6246e904
Time: 2017-09-01
Author: stan.chambon@gmail.com
File Name: ot/da.py
Class Name: BaseTransport
Method Name: fit
Project Name: analysiscenter/batchflow
Commit Name: 7b291cf4e72eea4beaa3e9f1b5645de420fe6802
Time: 2018-06-18
Author: rhudor@gmail.com
File Name: dataset/models/metrics/classify.py
Class Name: ClassificationMetrics
Method Name: _calc_agg_metric