Showing 369 of 369 total issues
Function __init__
has 26 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
Function __init__
has 25 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
Function __init__
has 25 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
Function __init__
has 25 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
Function __init__
has 25 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
Function __init__
has 25 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
Function __init__
has 25 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
Function __init__
has 25 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
Function classification_evaluation_pipeline
has 24 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def classification_evaluation_pipeline(
Function _evaluate_on_single_holdout
has 24 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _evaluate_on_single_holdout(
Function __init__
has 24 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
Function _fit
has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring. Open
Open
def _fit(
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 __init__
has 23 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
Function __init__
has 23 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
Function __init__
has 23 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
File embedding_result.py
has 284 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
"""Subclass providing EmbeddingResult object."""
import inspect
import types
import warnings
from typing import Dict, List, Optional, Union
File node_label_prediction_model.py
has 282 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
"""Module providing abstract node label prediction model."""
from typing import Optional, Union, List, Dict, Any, Tuple
import pandas as pd
import numpy as np
import warnings
Function edge_label_prediction_evaluation
has 22 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def edge_label_prediction_evaluation(
Function __init__
has 22 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
Function __init__
has 22 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(