b6a4b26ea39c634adfc46b064375f4af30b7e7a3,Orange/distance/__init__.py,Jaccard,__call__,#Jaccard#Any#Any#Any#,70
Before Change
x2 = x2.reshape(1, len(x2))
dist = metrics.pairwise.pairwise_distances(x1, x2, metric="jaccard")
if dist.size == 1:
dist = dist [0, 0 ]
else:
dist = DistMatrix(dist, e1, e2)
return dist
After Change
x2 = x2.T
if not sparse.issparse(x1):
x1 = np.atleast_2d(x1)
if e2 is not None and not sparse.issparse(x2):
x2 = np.atleast_2d(x2)
dist = metrics.pairwise.pairwise_distances(x1, x2, metric=self.metric, **kwargs)
if isinstance(e1, data.Table) or isinstance(e1, data.RowInstance):
dist = DistMatrix(dist, e1, e2)
else:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: biolab/orange3
Commit Name: b6a4b26ea39c634adfc46b064375f4af30b7e7a3
Time: 2014-12-19
Author: niko.colneric@gmail.com
File Name: Orange/distance/__init__.py
Class Name: Jaccard
Method Name: __call__
Project Name: scikit-learn-contrib/imbalanced-learn
Commit Name: 2e7c0700d00da702cdccb7c19b6fe1857b5bd1b7
Time: 2017-08-24
Author: g.lemaitre58@gmail.com
File Name: imblearn/under_sampling/prototype_generation/cluster_centroids.py
Class Name: ClusterCentroids
Method Name: _sample
Project Name: scikit-learn-contrib/imbalanced-learn
Commit Name: cddf39be59c3c1231d2d4fd3b9bfc10a21e63780
Time: 2017-08-24
Author: g.lemaitre58@gmail.com
File Name: imblearn/under_sampling/prototype_generation/cluster_centroids.py
Class Name: ClusterCentroids
Method Name: _sample