6a8d2f59086e71dc529fb5261eb291cd7f2615a9,mvpa2/measures/rsa.py,CDist,_call,#CDist#,65

Before Change


                       **self.params.pairwise_metric_kwargs)
        // Make target pairs
        distds = Dataset(samples=distds.ravel()[:, None],
                         sa={"pairs": list(product(self._train_ds.T,
                                                   test_ds.T))})
        return distds

After Change



    def _call(self, ds):
        test_ds = self._prepare_ds(ds)
        if test_ds.nsamples != self._train_ds.nsamples:
            raise ValueError("Dataset should have same sample size for dissimilarity."\
                             "train: %d, test: %d"%(self._train_ds.nsamples, test_ds.nsamples))
        // Call actual distance metric
        distds = cdist(self._train_ds.samples, test_ds.samples,
                       metric=self.params.pairwise_metric,
                       **self.params.pairwise_metric_kwargs)
        // Make target pairs
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: PyMVPA/PyMVPA
Commit Name: 6a8d2f59086e71dc529fb5261eb291cd7f2615a9
Time: 2016-10-05
Author: swaroopgj@gmail.com
File Name: mvpa2/measures/rsa.py
Class Name: CDist
Method Name: _call


Project Name: daavoo/pyntcloud
Commit Name: 7c5daf825bcb84e6f750a6d6fad3a2626c4ea5ec
Time: 2020-10-06
Author: sebastian.bullinger@iosb.fraunhofer.de
File Name: pyntcloud/io/las.py
Class Name:
Method Name: read_las


Project Name: snorkel-team/snorkel
Commit Name: 254c997f8d3d2b35b12537dbd542fa51a137fe82
Time: 2017-07-05
Author: stephenhbach@gmail.com
File Name: snorkel/models/candidate.py
Class Name:
Method Name: candidate_subclass