mfinzi/LieConv

View on GitHub
lie_conv/datasets.py

Summary

Maintainability
C
1 day
Test Coverage

File datasets.py has 512 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import math
import torch
import torchvision.transforms as transforms
import torch.nn as nn
import torch.nn.functional as F
Severity: Major
Found in lie_conv/datasets.py - About 1 day to fix

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

        def __init__(self, root_dir=default_root_dir, train=True, download=True, n_systems=100, regen=False,
    Severity: Major
    Found in lie_conv/datasets.py - About 1 hr to fix

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

          def __init__(self, root_dir=default_root_dir, train=True, download=True, n_systems=100, space_dim=2, regen=False,
      Severity: Major
      Found in lie_conv/datasets.py - About 50 mins to fix

        There are no issues that match your filters.

        Category
        Status