a243ad678a264c898e133bb1f97efed72703ee06,mvpa2/tests/test_rsa.py,,test_CDist,#,78

Before Change


        cd_ = CDist(pairwise_metric=metric)

        assert_true(not cd_.is_trained)
        cd_.train(ds[ds.sa.chunks == 0, ])
        assert_true(cd_.is_trained)
        res = cd_(ds[ds.sa.chunks == 1, ])
        // Check to make sure the pdist results are close to CDist results
        assert_array_almost_equal(res.samples.ravel(),

After Change


    VI_mahalanobis = np.eye(5)
    for sattr in [["targets"], None]:
        for metric in metrics:
            metric_kwargs = {"VI": VI_mahalanobis} if metric == "mahalanobis" \
                else {}
            scipy_cdist = cdist(train_data.samples, test_data.samples,
                        metric, **metric_kwargs)
            pymvpa_cdist = CDist(pairwise_metric=metric,
                        pairwise_metric_kwargs=metric_kwargs,
                        sattr=sattr)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: PyMVPA/PyMVPA
Commit Name: a243ad678a264c898e133bb1f97efed72703ee06
Time: 2016-10-02
Author: matteo.visconti.gr@dartmouth.edu
File Name: mvpa2/tests/test_rsa.py
Class Name:
Method Name: test_CDist


Project Name: jindongwang/transferlearning
Commit Name: 376b01c2e338ec63e638f62a76d67f6a9323e47c
Time: 2019-08-14
Author: jindongwang@outlook.com
File Name: code/deep/DeepCoral/DeepCoral.py
Class Name:
Method Name:


Project Name: explosion/thinc
Commit Name: 6d3ec6c28f32560121d93b8fcab2cf7924f59dc5
Time: 2020-01-02
Author: honnibal+gh@gmail.com
File Name: thinc/layers/pytorchwrapper.py
Class Name:
Method Name: forward


Project Name: r9y9/wavenet_vocoder
Commit Name: 3210d75451d5d78ebe884c712f31800ca1ccd0b3
Time: 2018-01-03
Author: zryuichi@gmail.com
File Name: train.py
Class Name:
Method Name: