(data, max_anoms)
return 1 / data.size if max_anoms < 1 / data.size else max_anoms
Returns the max_anoms parameter used for S-H-ESD time series anomaly detection

      data : pandas DataFrame
        composed of input data
      max_anoms : float
        the input max_anoms
Returns the max_anoms parameter used for S-H-ESD time series anomaly detection
Returns the max_anoms parameter used for S - H - ESD time series anomaly detection
def _get_max_anoms(data, max_anoms):
    """
    Returns the max_anoms parameter used for S-H-ESD time series anomaly detection

      data : pandas DataFrame
        composed of input data
      max_anoms : float
        the input max_anoms
    """
    if max_anoms == 0:
        logger.warning('0 max_anoms results in max_outliers being 0.')
    return 1 / data.size if max_anoms < 1 / data.size else max_anoms
def _get_max_anoms ( data , max_anoms ) : if max_anoms == 0 : logger . warning ( '0 max_anoms results in max_outliers being 0.' ) return 1 / data . size if max_anoms < 1 / data . size else max_anoms