tensorflow/models

View on GitHub
official/modeling/optimization/ema_optimizer.py

Summary

Maintainability
A
3 hrs
Test Coverage

ExponentialMovingAverage has 24 functions (exceeds 20 allowed). Consider refactoring.
Open

class ExponentialMovingAverage(tf_keras.optimizers.legacy.Optimizer):
  """Optimizer that computes an exponential moving average of the variables.

  Empirically it has been found that using the moving average of the trained
  parameters of a deep network is better than using its trained parameters
Severity: Minor
Found in official/modeling/optimization/ema_optimizer.py - About 2 hrs to fix

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

      def __init__(self,
    Severity: Major
    Found in official/modeling/optimization/ema_optimizer.py - About 50 mins to fix

      There are no issues that match your filters.

      Category
      Status