



"""simple docstring"""

from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available


lowercase__					:						Dict												=			{
    '''configuration_timesformer''': ['''TIMESFORMER_PRETRAINED_CONFIG_ARCHIVE_MAP''', '''TimesformerConfig'''],
}

try:
     if not is_torch_available():
          raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
     pass
else:
     lowercase__					:						Union[str, Any]												=			[
         '''TIMESFORMER_PRETRAINED_MODEL_ARCHIVE_LIST''',
         '''TimesformerModel''',
         '''TimesformerForVideoClassification''',
         '''TimesformerPreTrainedModel''',
     ]

if TYPE_CHECKING:
     from .configuration_timesformer import TIMESFORMER_PRETRAINED_CONFIG_ARCHIVE_MAP, TimesformerConfig

     try:
          if not is_torch_available():
               raise OptionalDependencyNotAvailable()
     except OptionalDependencyNotAvailable:
          pass
     else:
          from .modeling_timesformer import (
              TIMESFORMER_PRETRAINED_MODEL_ARCHIVE_LIST,
              TimesformerForVideoClassification,
              TimesformerModel,
              TimesformerPreTrainedModel,
          )

else:
     import sys

     lowercase__					:						Any												=			_LazyModule(__name__, globals()['''__file__'''], _import_structure, module_spec=__spec__)










"""simple docstring"""

from statistics import mean, stdev




def __lowercase    (							_a	,    _a = 3					):
    snake_case_				:  Optional[int]       =			min(_a					)
    snake_case_				:  str       =			max(_a					)
    # normalize data
    return [round((x - x_min) / (x_max - x_min)	,    _a					) for x in data]






def __lowercase    (							_a	,    _a = 3					):
    snake_case_				:  Any       =			mean(_a					)
    snake_case_				:  str       =			stdev(_a					)
    # standardize data
    return [round((x - mu) / (sigma)	,    _a					) for x in data]





