SforAiDl/genrl

View on GitHub
genrl/core/actor_critic.py

Summary

Maintainability
C
1 day
Test Coverage

File actor_critic.py has 393 lines of code (exceeds 250 allowed). Consider refactoring.
Open

from typing import Tuple

import torch  # noqa
import torch.nn as nn  # noqa
from gym import spaces
Severity: Minor
Found in genrl/core/actor_critic.py - About 5 hrs to fix

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

        def __init__(
    Severity: Major
    Found in genrl/core/actor_critic.py - About 1 hr to fix

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

          def __init__(
      Severity: Major
      Found in genrl/core/actor_critic.py - About 1 hr to fix

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

            def __init__(
        Severity: Major
        Found in genrl/core/actor_critic.py - About 1 hr to fix

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

              def __init__(
          Severity: Major
          Found in genrl/core/actor_critic.py - About 1 hr to fix

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

                def __init__(
            Severity: Major
            Found in genrl/core/actor_critic.py - About 1 hr to fix

              There are no issues that match your filters.

              Category
              Status