5457e56e357e17085cd225083caa5a770971d161,kmodes/tests/test_kmodes.py,TestKModes,test_matching_dissim,#TestKModes#,20

Before Change


            kmodes.matching_dissim(a, b)

        a = np.atleast_2d(a)
        b = np.atleast_2d(b)
        assert_equal(1, kmodes.matching_dissim(a, b))

        a = np.array([["a", "b", "c", "d"]])
        b = np.array([["a", "b", "c", "d"], ["d", "c", "b", "a"]])

After Change


        assert_equal("b", max_key)

    def test_matching_dissim(self):
        a = np.array([[0, 1, 2, 0, 1, 2]])
        b = np.array([[0, 1, 2, 0, 1, 0]])
        assert_equal(1, kmodes.matching_dissim(a, b))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: nicodv/kmodes
Commit Name: 5457e56e357e17085cd225083caa5a770971d161
Time: 2016-02-26
Author: nico.devos@autogrid.com
File Name: kmodes/tests/test_kmodes.py
Class Name: TestKModes
Method Name: test_matching_dissim


Project Name: nicodv/kmodes
Commit Name: 7cacd4febcf4729ea33344541c8cc45fccc125e8
Time: 2015-05-11
Author: nico.devos@autogrid.com
File Name: examples/stocks.py
Class Name:
Method Name:


Project Name: arviz-devs/arviz
Commit Name: d55bad55b6a9e97f800c97c73038bc5ed8d4b31f
Time: 2018-11-03
Author: ahartikainen@users.noreply.github.com
File Name: arviz/data/io_pystan.py
Class Name: PyStanConverter
Method Name: prior_to_xarray


Project Name: librosa/librosa
Commit Name: 94e7b43693ad4f886a57f9558dedb0b244c19cc8
Time: 2019-04-16
Author: brian.mcfee@nyu.edu
File Name: librosa/core/spectrum.py
Class Name:
Method Name: pcen