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

Function check_id_weights

graphlearn/python/tests/utils.py:210–211  ·  view source on GitHub ↗
(ids, weights)

Source from the content-addressed store, hash-verified

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)
212
213
214def check_not_exist_node_weights(nodes):

Callers 1

check_node_weightsFunction · 0.85

Calls 1

reshapeMethod · 0.80

Tested by

no test coverage detected