MCPcopy Create free account
hub / github.com/alibaba/graph-learn / check_labels

Method check_labels

graphlearn/python/tests/test_node.py:57–61  ·  view source on GitHub ↗
(self, nodes)

Source from the content-addressed store, hash-verified

55 self.assertAlmostEqual(0.8, nodes.weights[2])
56
57 def check_labels(self, nodes):
58 self.assertEqual(3, nodes.labels.shape[0])
59 self.assertEqual(2, nodes.labels[0])
60 self.assertEqual(5, nodes.labels[1])
61 self.assertEqual(8, nodes.labels[2])
62
63 def check_attrs(self, nodes):
64 self.assertListEqual([3, 2], list(nodes.int_attrs.shape)) # [int_num, batch_size]

Callers 4

test_labeledMethod · 0.80
test_weighted_labeledMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected