c0ad09c2449a7235f5d79147142108ca442df531,scipy/interpolate/rbf.py,Rbf,_call_norm,#Rbf#Any#Any#,229

Before Change


        if len(x2.shape) == 1:
            x2 = x2[np.newaxis, :]
        x1 = x1[..., :, np.newaxis]
        x2 = x2[..., np.newaxis, :]
        return self.norm(x1, x2)

    def __call__(self, *args):
        args = [np.asarray(x) for x in args]

After Change


        return self._init_function(r) - np.eye(self.N)*self.smooth

    def _call_norm(self, x1, x2):
        return cdist(x1.T, x2.T, self.norm)

    def __call__(self, *args):
        args = [np.asarray(x) for x in args]
        if not all([x.shape == y.shape for x in args for y in args]):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: scipy/scipy
Commit Name: c0ad09c2449a7235f5d79147142108ca442df531
Time: 2018-09-10
Author: josua.sassen@adscheid.de
File Name: scipy/interpolate/rbf.py
Class Name: Rbf
Method Name: _call_norm


Project Name: deepchem/deepchem
Commit Name: b3c9f2c6ca76841bac6662d037b9ccf8344c7f6c
Time: 2017-11-02
Author: martasd@ibb.waw.pl
File Name: deepchem/feat/rdkit_grid_featurizer.py
Class Name:
Method Name: compute_pairwise_distances


Project Name: oddt/oddt
Commit Name: 3522c603ab6378ac0b800302be71888d5788ac34
Time: 2017-05-19
Author: maciek@wojcikowski.pl
File Name: oddt/spatial.py
Class Name:
Method Name: distance