1cb78774b56060b697b5df6605932b4eb1b14754,tests/test_compare.py,TestCompareApi,test_compare_custom_vectorized_arguments_dedup,#TestCompareApi#,267
Before Change
// test without label
comp = recordlinkage.Compare()
comp.compare_vectorized(always_x, "col", "col", 5)
result = comp.compute(ix, A)
expected = pandas.DataFrame([5, 5, 5, 5, 5], index=ix)
pdt.assert_frame_equal(result, expected)
After Change
// test with label
comp = recordlinkage.Compare()
comp.compare_vectorized(
lambda s1, s2, x : np.ones(len(s1), dtype=np.int) * x,
"col",
"col",
5,
label="test"
)
result = comp.compute(ix, A)
expected = DataFrame([5, 5, 5, 5, 5], index=ix, columns=["test"])
pdt.assert_frame_equal(result, expected)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances
Project Name: J535D165/recordlinkage
Commit Name: 1cb78774b56060b697b5df6605932b4eb1b14754
Time: 2017-08-24
Author: jonathandebruinhome@gmail.com
File Name: tests/test_compare.py
Class Name: TestCompareApi
Method Name: test_compare_custom_vectorized_arguments_dedup
Project Name: J535D165/recordlinkage
Commit Name: 1cb78774b56060b697b5df6605932b4eb1b14754
Time: 2017-08-24
Author: jonathandebruinhome@gmail.com
File Name: tests/test_compare.py
Class Name: TestCompareApi
Method Name: test_compare_custom_vectorized_arguments_linking
Project Name: J535D165/recordlinkage
Commit Name: 1cb78774b56060b697b5df6605932b4eb1b14754
Time: 2017-08-24
Author: jonathandebruinhome@gmail.com
File Name: tests/test_compare.py
Class Name: TestCompareApi
Method Name: test_compare_custom_vectorized_dedup
Project Name: J535D165/recordlinkage
Commit Name: 1cb78774b56060b697b5df6605932b4eb1b14754
Time: 2017-08-24
Author: jonathandebruinhome@gmail.com
File Name: tests/test_compare.py
Class Name: TestCompareApi
Method Name: test_compare_custom_vectorized_linking