monarch-initiative/N2V

View on GitHub

Showing 369 of 369 total issues

Avoid deeply nested control flow statements.
Open

                        for i, units in enumerate(
                            self._number_of_units_per_ffnn_body_layer
                        ):
                            assert isinstance(units, int)
                            assert not isinstance(hidden, list)
Severity: Major
Found in embiggen/utils/abstract_edge_gcn.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_prediction/edge_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) > 1:
                                  ordinal = number_to_ordinal(i + 1)
                              else:
                                  ordinal = ""
                              layer_name = f"{ordinal}{source_feature_name}SiameseDense"
      Severity: Major
      Found in embiggen/utils/abstract_edge_gcn.py - About 45 mins to fix

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

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

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

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

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

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

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

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

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

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

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

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

                    Avoid deeply nested control flow statements.
                    Open

                                            for siamese_layer in partial_siamese_layers:
                                                assert issubclass(
                                                    type(siamese_layer), Layer
                                                ), f"Expected a layer, but found {type(siamese_layer)}."
                                                hidden = siamese_layer(hidden)
                    Severity: Major
                    Found in embiggen/utils/abstract_edge_gcn.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/utils/abstract_models/abstract_classifier_model.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_prediction/edge_prediction_tensorflow/gcn.py - About 45 mins to fix

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

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

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

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

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

                                  def _fit(
                              Severity: Minor
                              Found in embiggen/edge_prediction/edge_prediction_ensmallen/perceptron.py - About 45 mins to fix

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

                                    def _predict_proba(

                                  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/node_label_prediction/node_label_prediction_model.py - About 45 mins to fix

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

                                        def __init__(
                                    Severity: Minor
                                    Found in embiggen/feature_preprocessors/graph_convolution.py - About 45 mins to fix

                                      Avoid deeply nested control flow statements.
                                      Open

                                                                  if separator in src:
                                                                      src = src.replace("\"", "\\\"")
                                                                      src = f"\"{src}\""
                                                                  if separator in dst:
                                      Severity: Major
                                      Found in embiggen/edge_prediction/edge_prediction_model.py - About 45 mins to fix

                                        Avoid deeply nested control flow statements.
                                        Open

                                                                    if separator in dst:
                                                                        dst = dst.replace("\"", "\\\"")
                                                                        dst = f"\"{dst}\""
                                                                else:
                                        Severity: Major
                                        Found in embiggen/edge_prediction/edge_prediction_model.py - About 45 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language