WenjieDu/PyPOTS

View on GitHub

Showing 376 of 433 total issues

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

    def __init__(self, self_attention, cross_attention, seg_len, d_model, d_ff=None, dropout=0.1):
Severity: Minor
Found in pypots/nn/modules/crossformer/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/cli/doc.py - About 45 mins to fix

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

          def __init__(
      Severity: Minor
      Found in pypots/imputation/usgan/core.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/fedformer/layers.py - About 35 mins to fix

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

              def __init__(self, d_model, n_heads, d_out, pred_len, dropout=0.1):
          Severity: Minor
          Found in pypots/nn/modules/etsformer/layers.py - About 35 mins to fix

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

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

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

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

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

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

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

                      def __init__(self, in_channels, out_channels, seq_len, modes=0, mode_select_method="random"):
                  Severity: Minor
                  Found in pypots/nn/modules/fedformer/layers.py - About 35 mins to fix

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

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

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

                          def __init__(self, d_model, patch_len, stride, padding, dropout):
                      Severity: Minor
                      Found in pypots/nn/modules/patchtst/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

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

                              def forward(self, X, missing_mask, deltas, empirical_mean, X_filledLOCF) -> Tuple[torch.Tensor, ...]:
                          Severity: Minor
                          Found in pypots/nn/modules/grud/backbone.py - About 35 mins to fix

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

                                def __init__(self, input_size, hidden_size, output_size=None, n_layers=1, dropout=0.0):
                            Severity: Minor
                            Found in pypots/nn/modules/imputeformer/mlp.py - About 35 mins to fix

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

                              def ar4cast(A, X, Sigma, time_lags, multi_step):
                              Severity: Minor
                              Found in pypots/forecasting/bttf/submodules.py - About 35 mins to fix

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

                                    def __init__(self, n_features, d_model, d_output, head_dropout, y_range=None):
                                Severity: Minor
                                Found in pypots/nn/modules/patchtst/layers.py - About 35 mins to fix

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

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

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

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

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

                                          def calc_loss_valid(self, observed_data, cond_mask, indicating_mask, side_info, is_train):
                                      Severity: Minor
                                      Found in pypots/nn/modules/csdi/backbone.py - About 35 mins to fix

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

                                            def forward(
                                        Severity: Minor
                                        Found in pypots/nn/modules/autoformer/layers.py - About 35 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language