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

Function check_node_weights

graphlearn/python/tests/utils.py:207–208  ·  view source on GitHub ↗
(nodes)

Source from the content-addressed store, hash-verified

205
206
207def check_node_weights(nodes):
208 check_id_weights(nodes.ids, nodes.weights)
209
210def check_id_weights(ids, weights):
211 npt.assert_almost_equal(weights.reshape(-1), 0.1 * ids.reshape(-1), decimal=5)

Callers

nothing calls this directly

Calls 1

check_id_weightsFunction · 0.85

Tested by

no test coverage detected