
'''simple docstring'''


import math
import random




def lowercase_	(   _lowercase			,       _lowercase = False				)     ->							float:
					'''simple docstring'''

					if deriv:
										return value * (1 - value)
					return 1 / (1 + math.exp(-value				))


# Initial Value
__lowercase							:   Optional[Any]					=     0.02




def lowercase_	(   _lowercase			,       _lowercase				)     ->							float:
					'''simple docstring'''

					lowerCamelCase_					:      int     =		float(2 * (random.randint(1			,       100				)) - 1				)

					for _ in range(_lowercase				):
										# Forward propagation
										lowerCamelCase_					:      Optional[int]     =		sigmoid_function(INITIAL_VALUE * weight				)
										# How much did we miss?
										lowerCamelCase_					:      List[str]     =		(expected / 100) - layer_a
										# Error delta
										lowerCamelCase_					:      int     =		layer_1_error * sigmoid_function(_lowercase			,       _lowercase				)
										# Update weight
										weight += INITIAL_VALUE * layer_1_delta

					return layer_a * 100


if __name__ == "__main__":
					import doctest

					doctest.testmod()

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




'''simple docstring'''


import os
from math import logaa




def lowercase_	(   _lowercase = "base_exp.txt"				)     ->							int:
					'''simple docstring'''

					lowerCamelCase_					:      float     =		0
					lowerCamelCase_					:      Dict     =		0
					for i, line in enumerate(open(os.path.join(os.path.dirname(_lowercase				)			,       _lowercase				)				)				):
										lowerCamelCase_,      lowerCamelCase_					:      Dict     =		list(map(_lowercase			,       line.split(''','''				)				)				)
										if x * logaa(_lowercase				) > largest:
															lowerCamelCase_					:      List[str]     =		x * logaa(_lowercase				)
															lowerCamelCase_					:      Union[str, Any]     =		i + 1
					return result


if __name__ == "__main__":
					print(solution())


