3898f705a06bca707a9c1f5c1c5f171b037a96a0,torch_geometric/transform/cartesian_test.py,CartesianTest,test_cartesian_adj,#CartesianTest#,9

Before Change


        transform = CartesianAdj()

        _, adj, position = transform((None, adj, position))
        adj = adj.to_dense()

        expected_position = [[1, 0], [0, 0], [-2, 4]]
        expected_adj_x = [
            [0., 0.375, 0],

After Change


        adj, position = data.adj, data.position

        expected_adj = [
            [[0, 0], [0.375, 0.5], [0, 0]],
            [[0.625, 0.5], [0, 0], [0.25, 1]],
            [[0, 0], [0.75, 0], [0, 0]],
        ]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: rusty1s/pytorch_geometric
Commit Name: 3898f705a06bca707a9c1f5c1c5f171b037a96a0
Time: 2017-11-18
Author: matthias.fey@tu-dortmund.de
File Name: torch_geometric/transform/cartesian_test.py
Class Name: CartesianTest
Method Name: test_cartesian_adj


Project Name: rusty1s/pytorch_geometric
Commit Name: 831e2ebde9122f2ffb2d128c4f8b8e85151efad0
Time: 2017-11-18
Author: matthias.fey@tu-dortmund.de
File Name: torch_geometric/transform/spherical_test.py
Class Name: SphericalTest
Method Name: test_spherical_adj


Project Name: rusty1s/pytorch_geometric
Commit Name: 831e2ebde9122f2ffb2d128c4f8b8e85151efad0
Time: 2017-11-18
Author: matthias.fey@tu-dortmund.de
File Name: torch_geometric/transform/polar_test.py
Class Name: PolarTest
Method Name: test_polar_adj