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

Function check_src_dst_weights

graphlearn/python/tests/utils.py:332–335  ·  view source on GitHub ↗
(weights, src_ids, dst_ids)

Source from the content-addressed store, hash-verified

330 check_src_dst_weights(edges.weights, edges.src_ids, edges.dst_ids)
331
332def check_src_dst_weights(weights, src_ids, dst_ids):
333 npt.assert_almost_equal(weights,
334 0.1 * (src_ids + 0.1 * dst_ids),
335 decimal=5)
336
337def check_not_exist_edge_weights(edges):
338 if len(edges.shape) == 2:

Callers 1

check_edge_weightsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected