b52e083827ce7aefda75c4370db0ad6942e27dae,tests/data/test_stellargraph.py,,test_numeric_target_conversion_prefilled,#,350
Before Change
assert aa[:, 0] == pytest.approx([0,1,2,3])
assert aa.shape == (4,10)
ab = sg._node_target_arrays["B"]
assert ab.shape == (3,10)
assert ab[:, 0] == pytest.approx([4,5,0])
After Change
assert aa[:, 0] == pytest.approx([0, 1, 2, 3])
assert aa.shape == (4, 10)
ab = sg.get_target_for_nodes([4, 5, 6], "B")
assert ab.shape == (3, 10)
assert ab[:, 0] == pytest.approx([4, 5, 0])
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: stellargraph/stellargraph
Commit Name: b52e083827ce7aefda75c4370db0ad6942e27dae
Time: 2018-08-12
Author: docherty@gmail.com
File Name: tests/data/test_stellargraph.py
Class Name:
Method Name: test_numeric_target_conversion_prefilled
Project Name: stellargraph/stellargraph
Commit Name: b52e083827ce7aefda75c4370db0ad6942e27dae
Time: 2018-08-12
Author: docherty@gmail.com
File Name: stellar/mapper/node_mappers.py
Class Name: HinSAGENodeMapper
Method Name: __getitem__
Project Name: stellargraph/stellargraph
Commit Name: b52e083827ce7aefda75c4370db0ad6942e27dae
Time: 2018-08-12
Author: docherty@gmail.com
File Name: stellar/mapper/node_mappers.py
Class Name: GraphSAGENodeMapper
Method Name: __getitem__