b2a33bb95c72610411541b5aedb202f20b3349d3,tests/post-build/test_vectors.py,,test_shrink_and_sort,#,112
Before Change
// Check if the frame is l2 normalized
lengths = np.sqrt(np.sum(np.power(shrank, 2), axis="columns"))
ok_(all(isclose(length, 1.0, rel_tol=1e-04) for length in lengths))
// Check if the index is sorted
ok_(shrank.index.is_monotonic_increasing)
After Change
// Check if the frame is l2 normalized
lengths = np.sqrt(np.sum(np.power(shrank, 2), axis="columns"))
for length in lengths:
assert_almost_equal(length, 1.0, places=4)
// Check if the index is sorted
ok_(shrank.index.is_monotonic_increasing)
@click.command()
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: commonsense/conceptnet5
Commit Name: b2a33bb95c72610411541b5aedb202f20b3349d3
Time: 2017-05-16
Author: rob@luminoso.com
File Name: tests/post-build/test_vectors.py
Class Name:
Method Name: test_shrink_and_sort
Project Name: commonsense/conceptnet5
Commit Name: cff8df21d77f216c91c4d50d8368efb91203131f
Time: 2017-05-16
Author: rob@luminoso.com
File Name: tests/post-build/test_vectors.py
Class Name:
Method Name: test_l1_normalize_columns
Project Name: commonsense/conceptnet5
Commit Name: b2a33bb95c72610411541b5aedb202f20b3349d3
Time: 2017-05-16
Author: rob@luminoso.com
File Name: tests/post-build/test_vectors.py
Class Name:
Method Name: test_l2_normalize_rows