DeepRegNet/DeepReg

View on GitHub
deepreg/loss/label.py

Summary

Maintainability
B
5 hrs
Test Coverage

File label.py has 305 lines of code (exceeds 250 allowed). Consider refactoring.
Open

"""Provide different loss or metrics classes for labels."""

import tensorflow as tf

from deepreg.constant import EPS
Severity: Minor
Found in deepreg/loss/label.py - About 3 hrs to fix

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

        def __init__(
    Severity: Major
    Found in deepreg/loss/label.py - About 50 mins to fix

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

          def __init__(
      Severity: Minor
      Found in deepreg/loss/label.py - About 45 mins to fix

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

            def __init__(
        Severity: Minor
        Found in deepreg/loss/label.py - About 45 mins to fix

          There are no issues that match your filters.

          Category
          Status