





"""simple docstring"""






import math
import random

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


# Initial Value
A			      =	0.02

def      __A   (      a_    :int ,							a_    :int)		->		float:
				__a			:    List[Any]      							=	float(2 * (random.randint(1 ,							1_00)) - 1)

				for _ in range(a_):
								# Forward propagation
								__a			:    int      							=	sigmoid_function(INITIAL_VALUE * weight)
								# How much did we miss?
								__a			:    int      							=	(expected / 1_00) - layer_a
								# Error delta
								__a			:    Dict      							=	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()

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

__lowerCamelCase				=			{
    0: """0""",
    1: """1""",
    2: """2""",
    3: """3""",
    4: """4""",
    5: """5""",
    6: """6""",
    7: """7""",
    8: """8""",
    9: """9""",
    10: """a""",
    11: """b""",
    12: """c""",
    13: """d""",
    14: """e""",
    15: """f""",
}


def      UpperCamelCase   (       __lowerCamelCase	:					float       ):
       assert type(__lowerCamelCase       ) in (int, float) and decimal == int(__lowerCamelCase       )
       snake_case			:  str     							= int(__lowerCamelCase       )
       snake_case			:  str     							= ""
       snake_case			:  str     							= False
       if decimal < 0:
              snake_case			:  Optional[Any]     							= True
              decimal *= -1
       while decimal > 0:
              snake_case							,   snake_case			:  Union[str, Any]     							= divmod(__lowerCamelCase							,   16       )
              snake_case			:  Tuple     							= values[remainder] + hexadecimal
       snake_case			:  Tuple     							= "0x" + hexadecimal
       if negative:
              snake_case			:  Any     							= "-" + hexadecimal
       return hexadecimal


if __name__ == "__main__":
   import doctest

   doctest.testmod()





