Showing 369 of 369 total issues
Function _get_model_prediction_input
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _get_model_prediction_input(
Function __init__
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
Function __init__
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
Function _predict
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _predict(
Function __init__
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
Function split_graph_following_evaluation_schema
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def split_graph_following_evaluation_schema(
Function _get_model_prediction_input
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _get_model_prediction_input(
Function __init__
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
Function __init__
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
Function _trasform_graph_into_edge_embedding
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _trasform_graph_into_edge_embedding(
Function _fit
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _fit(
Function _predict_proba
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _predict_proba(
Function __init__
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
Open
def __init__(
self,
graph: Graph,
support: Graph,
kernels: Optional[List[tf.SparseTensor]],
- 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 _predict_proba
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _predict_proba(
Function _get_edge_embedding
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _get_edge_embedding(
Function __init__
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
Function __init__
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
Function __init__
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
Function _get_model_training_input
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _get_model_training_input(
Avoid deeply nested control flow statements. Open
Open
if len(self._number_of_units_per_ffnn_body_layer) > 0:
hidden = BatchNormalization()(hidden)
this_ffnn_output.append(hidden)