stellargraph/stellargraph

View on GitHub
stellargraph/layer/knowledge_graph.py

Summary

Maintainability
A
0 mins
Test Coverage

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open

    assert raw_rank.shape == filtered_rank.shape == (batch_size,)

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open

        assert self.built

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open

        assert raw.shape == filtered.shape == (num_tested, 2)

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
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]], ...])

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open

    assert pred.shape == (known_edges_graph.number_of_nodes(), batch_size)

There are no issues that match your filters.

Category
Status