7b20a10273955a6b33a8563a878aadd9c0dfe0a6,mvpa2/tests/test_rsa.py,,test_CDist,#,76

Before Change


    // Some distance metrics
    euc = pdist(data, "euclidean")
    pear = pdist(data, "correlation")
    city = pdist(data, "cityblock")
    cdist_euc = CDist(pairwise_metric="euclidean")
    cdist_pear = CDist(pairwise_metric="correlation")
    cdist_city = CDist(pairwise_metric="cityblock")
    for pd_, cd_ in zip([euc, pear, city], [cdist_euc, cdist_pear, cdist_city]):

After Change


    chunks = np.repeat(np.array((0,1)), 3)
    ds = dataset_wizard(samples=data, targets=targets, chunks=chunks)
    // Some distance metrics
    metrics = ["euclidean", "correlation", "cityblock"]
    for metric in metrics:
        pd_ = pdist(data, metric)
        cd_ = CDist(pairwise_metric=metric)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: PyMVPA/PyMVPA
Commit Name: 7b20a10273955a6b33a8563a878aadd9c0dfe0a6
Time: 2016-09-29
Author: matteo.visconti.gr@dartmouth.edu
File Name: mvpa2/tests/test_rsa.py
Class Name:
Method Name: test_CDist


Project Name: pyannote/pyannote-audio
Commit Name: abbfdc5b04ec1824e42cebb472626d234ff7bd36
Time: 2017-01-09
Author: bredin@limsi.fr
File Name: scripts/speaker_embedding.py
Class Name:
Method Name: test


Project Name: pyannote/pyannote-audio
Commit Name: 3752a0bb4e9a59a52f6438fcf36d59d3266b847d
Time: 2016-06-26
Author: bredin@limsi.fr
File Name: pyannote/audio/embedding/generator.py
Class Name: _YaafeTripletGenerator
Method Name: from_protocol_item