stellargraph/stellargraph

View on GitHub
stellargraph/data/explorer.py

Summary

Maintainability
A
1 hr
Test Coverage

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

            assert chosen_neighbour_index is not None, "biases should never be all zero"

Severity: Info
Found in stellargraph/data/explorer.py by bandit

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

            assert len(biases) == n
Severity: Info
Found in stellargraph/data/explorer.py by bandit

Avoid deeply nested control flow statements.
Open

                        if len(neighbours) == 0:
                            # if no neighbours of the required type as dictated by the metapath exist, then stop.
                            break
                        # select one of the neighbours uniformly at random
                        current_node = rs.choice(
Severity: Major
Found in stellargraph/data/explorer.py - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                            for et in current_edge_types:
                                neigh_et = adj[et][current_node]
    
                                # If there are no neighbours of this type then we return None
                                # in the place of the nodes that would have been sampled
    Severity: Major
    Found in stellargraph/data/explorer.py - About 45 mins to fix

      There are no issues that match your filters.

      Category
      Status