stellargraph/layer/knowledge_graph.py
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Open
Open
assert raw_rank.shape == filtered_rank.shape == (batch_size,)
- Exclude checks
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Open
Open
assert self.built
- Exclude checks
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Open
Open
assert raw.shape == filtered.shape == (num_tested, 2)
- Exclude checks
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Open
Open
assert unmodified_node_ilocs.shape == true_rel_ilocs.shape == (batch_size,)
# the score of the true edge, for each edge in the batch (this indexes in lock-step,
# i.e. [pred[true_modified_node_ilocs[0], range(batch_size)[0]], ...])
- Exclude checks
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Open
Open
assert pred.shape == (known_edges_graph.number_of_nodes(), batch_size)
- Exclude checks