





'''simple docstring'''




from statistics import mean, stdev







def _lowerCAmelCase     (      _lowerCAmelCase       ,    _lowerCAmelCase = 3    )->     list:
 __UpperCAmelCase     :   Any					=   min(_lowerCAmelCase    )
 __UpperCAmelCase     :   Optional[Any]					=   max(_lowerCAmelCase    )
 # normalize data
 return [round((x - x_min) / (x_max - x_min)       ,    _lowerCAmelCase    ) for x in data]







def _lowerCAmelCase     (      _lowerCAmelCase       ,    _lowerCAmelCase = 3    )->     list:
 __UpperCAmelCase     :   List[str]					=   mean(_lowerCAmelCase    )
 __UpperCAmelCase     :   str					=   stdev(_lowerCAmelCase    )
 # standardize data
 return [round((x - mu) / (sigma)       ,    _lowerCAmelCase    ) for x in data]












'''simple docstring'''




from ...configuration_utils import PretrainedConfig
from ...utils import logging


_A:					Tuple							=				logging.get_logger(__name__)






class UpperCAmelCase							(		UpperCAmelCase_							):
    _A :			List[Any]						   =       """timm_backbone"""



    def __init__(  self     ,			__A=None     ,			__A=3     ,			__A=True     ,			__A=True     ,			__A=None     ,			**__A     ,			):
     super().__init__(**__A					)
     __UpperCAmelCase					=   backbone
     __UpperCAmelCase					=   num_channels
     __UpperCAmelCase					=   features_only
     __UpperCAmelCase					=   use_pretrained_backbone
     __UpperCAmelCase					=   True
     __UpperCAmelCase					=   out_indices if out_indices is not None else (-1,)





