
import warnings

from ..trainer import Trainer
from ..utils import logging


__lowerCAmelCase			:     Optional[Any]           =   logging.get_logger(__name__)




class        UpperCAmelCase_			( _A     ):


  '''simple docstring'''







  def __init__( self			: List[Any]			,							UpperCamelCase__			: int=None			,							**UpperCamelCase__			: Dict    )			->	Optional[Any]:







    """simple docstring"""






    warnings.warn(
        """`SageMakerTrainer` is deprecated and will be removed in v5 of Transformers. You can use `Trainer` """
        """instead."""			,							UpperCamelCase__			,							)
    super().__init__(args=UpperCamelCase__			,							**UpperCamelCase__    )



from collections.abc import Sequence






def        a_		(       __lowercase   :	Sequence[float]       ,					__lowercase   :	float ) ->  float:
			return sum(c * (x**i) for i, c in enumerate(__lowercase ) )






def        a_		(       __lowercase   :	Sequence[float]       ,					__lowercase   :	float ) ->  float:
			_snake_case		=			0.0
			for coeff in reversed(__lowercase ):
						_snake_case		=			result * x + coeff
			return result


if __name__ == "__main__":
			_lowerCamelCase       :				Optional[Any]       =			(0.0, 0.0, 5.0, 9.3, 7.0)
			_lowerCamelCase       :				Optional[int]       =			1_0.0
			print(evaluate_poly(poly, x))
			print(horner(poly, x))