





"""simple docstring"""
from typing import List

import datasets
from datasets.tasks import AudioClassification

from ..folder_based_builder import folder_based_builder


__A       =		datasets.utils.logging.get_logger(__name__)






class  _SCREAMING_SNAKE_CASE(       folder_based_builder.FolderBasedBuilderConfig  ):
       SCREAMING_SNAKE_CASE_       :				int     						=  None
       SCREAMING_SNAKE_CASE_       :				Dict     						=  None






class  _SCREAMING_SNAKE_CASE(       folder_based_builder.FolderBasedBuilder  ):
       SCREAMING_SNAKE_CASE_       :				Optional[Any]     						=  datasets.Audio()
       SCREAMING_SNAKE_CASE_       :				List[str]     						=  '''audio'''
       SCREAMING_SNAKE_CASE_       :				str     						=  AudioFolderConfig
       SCREAMING_SNAKE_CASE_       :				Dict     						=  42  # definition at the bottom of the script
       SCREAMING_SNAKE_CASE_       :				List[Any]     						=  AudioClassification(audio_column='''audio'''   ,     label_column='''label'''  )




__A       =		[
    ".aiff",
    ".au",
    ".avr",
    ".caf",
    ".flac",
    ".htk",
    ".svx",
    ".mat4",
    ".mat5",
    ".mpc2k",
    ".ogg",
    ".paf",
    ".pvf",
    ".raw",
    ".rf64",
    ".sd2",
    ".sds",
    ".ircam",
    ".voc",
    ".w64",
    ".wav",
    ".nist",
    ".wavex",
    ".wve",
    ".xi",
    ".mp3",
    ".opus",
]
__A       =		AUDIO_EXTENSIONS






"""simple docstring"""
import math
import random



def 					__lowerCamelCase       (							a_					:		float			,       a_					:		bool = False							)      ->				float:
      if deriv:
            return value * (1 - value)
      return 1 / (1 + math.exp(-value							))


# Initial Value
lowerCamelCase_       =		0.02



def 					__lowerCamelCase       (							a_					:		int			,       a_					:		int							)      ->				float:
      __SCREAMING_SNAKE_CASE       :Any		    =  float(2 * (random.randint(1			,       1_00							)) - 1							)

      for _ in range(a_							):
            # Forward propagation
            __SCREAMING_SNAKE_CASE       :Any		    =  sigmoid_function(INITIAL_VALUE * weight							)
            # How much did we miss?
            __SCREAMING_SNAKE_CASE       :Tuple		    =  (expected / 1_00) - layer_a
            # Error delta
            __SCREAMING_SNAKE_CASE       :Union[str, Any]		    =  layer_1_error * sigmoid_function(a_			,       a_							)
            # Update weight
            weight += INITIAL_VALUE * layer_1_delta

      return layer_a * 1_00


if __name__ == "__main__":
  import doctest

  doctest.testmod()

  lowerCamelCase_       =		int(input("Expected value: "))
  lowerCamelCase_       =		int(input("Number of propagations: "))
  print(forward_propagation(expected, number_propagations))