Showing 369 of 369 total issues
Function _predict_proba
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
Open
def _predict_proba(
self,
graph: Graph,
support: Optional[Graph] = None,
node_features: Optional[List[np.ndarray]] = None,
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function _get_model_training_input
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _get_model_training_input(
Function __init__
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
Function _fit
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _fit(
Consider simplifying this complex logical expression. Open
Open
if (
len(features) == 0
and not self._use_node_embedding
and not self._use_edge_type_embedding
and len(edge_features) == 0
Function __init__
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
Function _get_positive_edges_embedding
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _get_positive_edges_embedding(
Function __init__
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
Function _build_output
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _build_output(
Function plot_positive_and_negative_adamic_adar_histogram
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def plot_positive_and_negative_adamic_adar_histogram(
Function plot_positive_and_negative_resource_allocation_index_histogram
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def plot_positive_and_negative_resource_allocation_index_histogram(
Function plot_positive_and_negative_preferential_attachment_histogram
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def plot_positive_and_negative_preferential_attachment_histogram(
Function __init__
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
Function _build_output
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _build_output(
Function _build_output
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _build_output(
Function _set_legend
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _set_legend(
Function fit_negative_and_positive_edges
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def fit_negative_and_positive_edges(
Function fit_edges
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def fit_edges(
Function plot_edge_segments
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def plot_edge_segments(
Function _get_negative_edge_embedding
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _get_negative_edge_embedding(