monarch-initiative/N2V

View on GitHub

Showing 369 of 369 total issues

Function get_model_or_stub has 8 arguments (exceeds 4 allowed). Consider refactoring.
Open

def get_model_or_stub(
Severity: Major
Found in embiggen/utils/abstract_models/model_stub.py - About 1 hr to fix

    Function _prepare_evaluation has 8 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        def _prepare_evaluation(
    Severity: Major
    Found in embiggen/node_label_prediction/node_label_prediction_model.py - About 1 hr to fix

      Function __init__ has 8 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          def __init__(

        Function build has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
        Open

            def build(self, input_shape) -> None:
                """Build the Graph Convolution layer.
        
                Parameters
                ------------------------------
        Severity: Minor
        Found in embiggen/layers/tensorflow/graph_convolution_layer.py - About 55 mins to fix

        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 _evaluate has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
        Open

            def _evaluate(
                self,
                graph: Graph,
                train: Graph,
                test: Graph,
        Severity: Minor
        Found in embiggen/edge_prediction/edge_prediction_model.py - About 55 mins to fix

        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 7 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            def __init__(
        Severity: Major
        Found in embiggen/embedders/ensmallen_embedders/degree_spine.py - About 50 mins to fix

          Function fit has 7 arguments (exceeds 4 allowed). Consider refactoring.
          Open

              def fit(
          Severity: Major
          Found in embiggen/edge_label_prediction/edge_label_prediction_model.py - About 50 mins to fix

            Function __init__ has 7 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                def __init__(
            Severity: Major
            Found in embiggen/embedders/karateclub_embedders/boostne.py - About 50 mins to fix

              Function __init__ has 7 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                  def __init__(
              Severity: Major
              Found in embiggen/embedders/karateclub_embedders/netmf.py - About 50 mins to fix

                Function __init__ has 7 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                    def __init__(
                Severity: Major
                Found in embiggen/embedders/ensmallen_embedders/ruine.py - About 50 mins to fix

                  Function __init__ has 7 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                      def __init__(
                  Severity: Major
                  Found in embiggen/embedders/ensmallen_embedders/degree_wine.py - About 50 mins to fix

                    Function __init__ has 7 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                        def __init__(
                    Severity: Major
                    Found in embiggen/embedders/ensmallen_embedders/rubicone.py - About 50 mins to fix

                      Function transform has 7 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                          def transform(
                      Severity: Major
                      Found in embiggen/embedding_transformers/edge_transformer.py - About 50 mins to fix

                        Function _predict has 7 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                            def _predict(
                        Severity: Major
                        Found in embiggen/edge_prediction/edge_prediction_ensmallen/perceptron.py - About 50 mins to fix

                          Function _predict has 7 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                              def _predict(
                          Severity: Major
                          Found in embiggen/utils/abstract_models/abstract_classifier_model.py - About 50 mins to fix

                            Function __init__ has 7 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                                def __init__(

                              Function _predict_proba has 7 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                                  def _predict_proba(
                              Severity: Major
                              Found in embiggen/edge_prediction/sklearn_like_edge_prediction_adapter.py - About 50 mins to fix

                                Function _fit has 7 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

                                    def _fit(
                                Severity: Major
                                Found in embiggen/utils/abstract_gcn.py - About 50 mins to fix

                                  Function fit has 7 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                      def fit(
                                  Severity: Major
                                  Found in embiggen/utils/abstract_models/abstract_classifier_model.py - About 50 mins to fix

                                    Function plot_positive_and_negative_edges_euclidean_distance_histogram has 7 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

                                        def plot_positive_and_negative_edges_euclidean_distance_histogram(
                                    Severity: Major
                                    Found in embiggen/visualizations/graph_visualizer.py - About 50 mins to fix
                                      Severity
                                      Category
                                      Status
                                      Source
                                      Language