
def        a_		(       __lowercase   :	list[int] ) ->  float:
			if not nums:  # Makes sure that the list is not empty
						raise ValueError('List is empty' )

			_snake_case		=			sum(__lowercase ) / len(__lowercase )  # Calculate the average
			return sum(abs(x - average ) for x in nums ) / len(__lowercase )


if __name__ == "__main__":
			import doctest

			doctest.testmod()

import numpy as np






def        a_		(       __lowercase   :	np.array ) ->  np.array:
			return 1 / (1 + np.exp(-vector ))


if __name__ == "__main__":
			import doctest

			doctest.testmod()