WenjieDu/PyPOTS

View on GitHub
pypots/nn/modules/informer/layers.py

Summary

Maintainability
B
4 hrs
Test Coverage

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

    def __init__(self, B, H, L, index, scores, device="cpu"):
Severity: Minor
Found in pypots/nn/modules/informer/layers.py - About 45 mins to fix

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

        def _update_context(self, context_in, V, scores, index, L_Q, attn_mask):
    Severity: Minor
    Found in pypots/nn/modules/informer/layers.py - About 45 mins to fix

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

          def __init__(
      Severity: Minor
      Found in pypots/nn/modules/informer/layers.py - About 45 mins to fix

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

            def forward(self, x, cross, x_mask=None, cross_mask=None, tau=None, delta=None):
        Severity: Minor
        Found in pypots/nn/modules/informer/layers.py - About 45 mins to fix

          Function forward has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

              def forward(
          Severity: Minor
          Found in pypots/nn/modules/informer/layers.py - About 35 mins to fix

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

                def __init__(self, attention, d_model, d_ff=None, dropout=0.1, activation="relu"):
            Severity: Minor
            Found in pypots/nn/modules/informer/layers.py - About 35 mins to fix

              There are no issues that match your filters.

              Category
              Status