official/modeling/optimization/ema_optimizer.py
ExponentialMovingAverage
has 24 functions (exceeds 20 allowed). Consider refactoring. Open
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
Function __init__
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(self,