WenjieDu/PyPOTS

View on GitHub

Showing 398 of 455 total issues

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

    def __init__(
Severity: Major
Found in pypots/nn/modules/fedformer/autoencoder.py - About 1 hr to fix

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

        def __init__(
    Severity: Major
    Found in pypots/imputation/scinet/core.py - About 1 hr to fix

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

          def __init__(
      Severity: Major
      Found in pypots/imputation/timemixer/core.py - About 1 hr to fix

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

            def __init__(
        Severity: Major
        Found in pypots/nn/modules/raindrop/backbone.py - About 1 hr to fix

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

              def __init__(
          Severity: Major
          Found in pypots/classification/grud/model.py - About 1 hr to fix

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

                def __init__(
            Severity: Major
            Found in pypots/imputation/gpvae/core.py - About 1 hr to fix

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

                  def __init__(
              Severity: Major
              Found in pypots/imputation/imputeformer/core.py - About 1 hr to fix

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

                    def __init__(
                Severity: Major
                Found in pypots/imputation/tefn/model.py - About 1 hr to fix

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

                      def __init__(
                  Severity: Major
                  Found in pypots/imputation/revinscinet/core.py - About 1 hr to fix

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

                        def __init__(
                            self,
                            task_name,
                            n_steps,
                            n_features,
                    Severity: Minor
                    Found in pypots/nn/modules/timemixer/backbone.py - About 1 hr 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 get_filter has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
                    Open

                    def get_filter(base, k):
                        def psi(psi1, psi2, i, inp):
                            mask = (inp <= 0.5) * 1.0
                            return psi1[i](inp) * mask + psi2[i](inp) * (1 - mask)
                    
                    
                    Severity: Minor
                    Found in pypots/nn/modules/fedformer/layers.py - About 1 hr 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 a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
                    Open

                        def __init__(
                            self,
                            n_steps,
                            n_features,
                            n_predict_features,
                    Severity: Minor
                    Found in pypots/nn/modules/moderntcn/backbone.py - About 1 hr 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 forward has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        def forward(
                            self,
                            q: torch.Tensor,
                            k: torch.Tensor,
                            v: torch.Tensor,
                    Severity: Minor
                    Found in pypots/nn/modules/fedformer/layers.py - About 1 hr to fix

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

                          def __init__(
                      Severity: Major
                      Found in pypots/nn/modules/csdi/backbone.py - About 1 hr to fix

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

                            def __init__(
                        Severity: Major
                        Found in pypots/classification/raindrop/core.py - About 1 hr to fix

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

                              def __init__(
                          Severity: Major
                          Found in pypots/imputation/etsformer/core.py - About 1 hr to fix

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

                                def __init__(
                            Severity: Major
                            Found in pypots/nn/modules/raindrop/layers.py - About 1 hr to fix

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

                                  def __init__(
                              Severity: Major
                              Found in pypots/imputation/itransformer/core.py - About 1 hr to fix

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

                                    def __init__(
                                Severity: Major
                                Found in pypots/imputation/nonstationary_transformer/core.py - About 1 hr to fix

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

                                      def __init__(
                                  Severity: Major
                                  Found in pypots/imputation/csdi/core.py - About 1 hr to fix
                                    Severity
                                    Category
                                    Status
                                    Source
                                    Language