monarch-initiative/N2V

View on GitHub

Showing 369 of 369 total issues

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

    def _get_model_prediction_input(
Severity: Major
Found in embiggen/node_label_prediction/node_label_prediction_tensorflow/gcn.py - About 50 mins to fix

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

        def __init__(
    Severity: Minor
    Found in embiggen/sequences/generic_sequences/edge_prediction_sequence.py - About 45 mins to fix

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

          def __init__(
      Severity: Minor
      Found in embiggen/embedders/ensmallen_embedders/node_label_spine.py - About 45 mins to fix

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

            def _predict(

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

              def __init__(
          Severity: Minor
          Found in embiggen/embedders/karateclub_embedders/grarep.py - About 45 mins to fix

            Function split_graph_following_evaluation_schema has 6 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                def split_graph_following_evaluation_schema(
            Severity: Minor
            Found in embiggen/edge_label_prediction/edge_label_prediction_model.py - About 45 mins to fix

              Function _get_model_prediction_input has 6 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                  def _get_model_prediction_input(
              Severity: Minor
              Found in embiggen/edge_label_prediction/edge_label_prediction_tensorflow/gcn.py - About 45 mins to fix

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

                    def __init__(
                Severity: Minor
                Found in embiggen/embedders/karateclub_embedders/nnsed.py - About 45 mins to fix

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

                      def __init__(
                  Severity: Minor
                  Found in embiggen/embedders/ensmallen_embedders/hope.py - About 45 mins to fix

                    Function _trasform_graph_into_edge_embedding has 6 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                        def _trasform_graph_into_edge_embedding(

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

                          def _fit(

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

                            def _predict_proba(

                          Function __init__ has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                          Open

                              def __init__(
                                  self,
                                  graph: Graph,
                                  support: Graph,
                                  kernels: Optional[List[tf.SparseTensor]],

                          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

                              def _predict_proba(
                          Severity: Minor
                          Found in embiggen/edge_label_prediction/edge_label_prediction_tensorflow/gcn.py - About 45 mins to fix

                            Function _get_edge_embedding has 6 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                                def _get_edge_embedding(
                            Severity: Minor
                            Found in embiggen/visualizations/graph_visualizer.py - About 45 mins to fix

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

                                  def __init__(
                              Severity: Minor
                              Found in embiggen/embedders/karateclub_embedders/node_sketch.py - About 45 mins to fix

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

                                    def __init__(
                                Severity: Minor
                                Found in embiggen/embedders/karateclub_embedders/nmfadmm.py - About 45 mins to fix

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

                                      def __init__(
                                  Severity: Minor
                                  Found in embiggen/embedders/ensmallen_embedders/node_label_wine.py - About 45 mins to fix

                                    Function _get_model_training_input has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

                                        def _get_model_training_input(
                                    Severity: Minor
                                    Found in embiggen/edge_label_prediction/edge_label_prediction_tensorflow/gcn.py - About 45 mins to fix

                                      Avoid deeply nested control flow statements.
                                      Open

                                                              if len(self._number_of_units_per_ffnn_body_layer) > 0:
                                                                  hidden = BatchNormalization()(hidden)
                                                              this_ffnn_output.append(hidden)
                                      Severity: Major
                                      Found in embiggen/utils/abstract_edge_gcn.py - About 45 mins to fix
                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language