mfinzi/pristine-ml

View on GitHub
oil/architectures/img_classifiers/networkparts.py

Summary

Maintainability
A
3 hrs
Test Coverage

Function __init__ has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    def __init__(self, numClasses=10):
        super().__init__()
        self.numClasses = numClasses
        self.activation = nn.LeakyReLU(0.1)
        self.conv1a = nn.Conv2d(3, 96, 3, padding=1)
Severity: Minor
Found in oil/architectures/img_classifiers/networkparts.py - About 1 hr to fix

    Function __init__ has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        def __init__(self, num_targets=10):
            super().__init__()
            self.numClasses = num_targets
            self.activation = nn.LeakyReLU(0.1)
            self.conv1a = weight_norm(nn.Conv2d(3, 128, 3, padding=1))
    Severity: Minor
    Found in oil/architectures/img_classifiers/networkparts.py - About 1 hr to fix

      Function __init__ has 27 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          def __init__(self, numClasses=10):
              super().__init__()
              self.numClasses = numClasses
              self.activation = nn.LeakyReLU(0.1)
              self.conv1a = weight_norm(nn.Conv2d(3, 96, 3, padding=1))
      Severity: Minor
      Found in oil/architectures/img_classifiers/networkparts.py - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status