monarch-initiative/N2V

View on GitHub

Showing 369 of 369 total issues

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

    def __init__(

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

        def __init__(

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

          def __init__(
      Severity: Major
      Found in embiggen/embedders/ensmallen_embedders/node2vec_skipgram.py - About 3 hrs to fix

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

            def __init__(
        Severity: Major
        Found in embiggen/embedders/ensmallen_embedders/node2vec_cbow.py - About 3 hrs to fix

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

              def __init__(

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

                def __init__(

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

                  def __init__(

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

                    def __init__(

                  Function classification_evaluation_pipeline has 24 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                  def classification_evaluation_pipeline(
                  Severity: Major
                  Found in embiggen/utils/pipeline.py - About 3 hrs to fix

                    Function _evaluate_on_single_holdout has 24 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                        def _evaluate_on_single_holdout(
                    Severity: Major
                    Found in embiggen/utils/abstract_models/abstract_classifier_model.py - About 3 hrs to fix

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

                          def __init__(

                        Function _fit has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
                        Open

                            def _fit(
                                self,
                                graph: Graph,
                                support: Optional[Graph] = None,
                                node_features: Optional[List[np.ndarray]] = None,

                        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

                            def __init__(
                        Severity: Major
                        Found in embiggen/embedders/tensorflow_embedders/node2vec.py - About 2 hrs to fix

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

                              def __init__(
                          Severity: Major
                          Found in embiggen/embedders/ensmallen_embedders/walklets.py - About 2 hrs to fix

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

                                def __init__(

                              File embedding_result.py has 284 lines of code (exceeds 250 allowed). Consider refactoring.
                              Open

                              """Subclass providing EmbeddingResult object."""
                              import inspect
                              import types
                              import warnings
                              from typing import Dict, List, Optional, Union
                              Severity: Minor
                              Found in embiggen/utils/abstract_models/embedding_result.py - About 2 hrs to fix

                                File node_label_prediction_model.py has 282 lines of code (exceeds 250 allowed). Consider refactoring.
                                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
                                Severity: Minor
                                Found in embiggen/node_label_prediction/node_label_prediction_model.py - About 2 hrs to fix

                                  Function edge_label_prediction_evaluation has 22 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                  def edge_label_prediction_evaluation(
                                  Severity: Major
                                  Found in embiggen/edge_label_prediction/edge_label_prediction_evaluation.py - About 2 hrs to fix

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

                                        def __init__(
                                    Severity: Major
                                    Found in embiggen/embedders/ensmallen_embedders/walklets_skipgram.py - About 2 hrs to fix

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

                                          def __init__(
                                      Severity: Major
                                      Found in embiggen/embedders/ensmallen_embedders/walklets_cbow.py - About 2 hrs to fix
                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language