






from collections.abc import Sequence






def 							A     (       a_							,a_					)     ->						float:
					return sum(c * (x**i) for i, c in enumerate(a_					)					)






def 							A     (       a_							,a_					)     ->						float:
					__UpperCamelCase      :					str       		=0.0
					for coeff in reversed(a_					):
										__UpperCamelCase      :					Any       		=result * x + coeff
					return result


if __name__ == "__main__":
							A_       :str       =						(0.0, 0.0, 5.0, 9.3, 7.0)
							A_       :Tuple       =						10.0
							print(evaluate_poly(poly, x))
							print(horner(poly, x))





import copy
from dataclasses import dataclass, field
from typing import ClassVar, Dict

from ..features import Audio, Features, Value
from .base import TaskTemplate







@dataclass(frozen=lowercase__)
class 			_lowercase (							lowercase__):


       """simple docstring"""




       A__											=			field(default="automatic-speech-recognition"							,  metadata={"include_in_asdict_even_if_is_default": True})
       A__											=			Features({"audio": Audio()})
       A__											=			Features({"transcription": Value("string")})
       A__											=			"audio"
       A__											=			"transcription"





       def 						lowerCAmelCase     (   self							:			Any					,      __lowerCamelCase							:			int       ):


             '''simple docstring'''



             if self.audio_column not in features:
                   raise ValueError(f"Column {self.audio_column} is not present in features."       )
             if not isinstance(features[self.audio_column]					,      __lowerCamelCase       ):
                   raise ValueError(f"Column {self.audio_column} is not an Audio type."       )
             lowerCamelCase__		:				Tuple    =  copy.deepcopy(self       )
             lowerCamelCase__		:				Tuple    =  self.input_schema.copy()
             lowerCamelCase__		:				Optional[int]    =  features[self.audio_column]
             lowerCamelCase__		:				int    =  input_schema
             return task_template





       @property
       def 						lowerCAmelCase     (   self							:			int       ):


             '''simple docstring'''



             return {self.audio_column: "audio", self.transcription_column: "transcription"}


