import numpy as np

def      SCREAMING_SNAKE_CASE_  (		snake_case__     ,						snake_case__							)  ->			str:
							lowerCAmelCase				=	np.array(snake_case__							)
							lowerCAmelCase				=	np.array(snake_case__							)

							lowerCAmelCase				=	abs(predict - actual							)
							lowerCAmelCase				=	difference.mean()

							return score

def      SCREAMING_SNAKE_CASE_  (		snake_case__     ,						snake_case__							)  ->			Union[str, Any]:
							lowerCAmelCase				=	np.array(snake_case__							)
							lowerCAmelCase				=	np.array(snake_case__							)

							lowerCAmelCase				=	predict - actual
							lowerCAmelCase				=	np.square(snake_case__							)

							lowerCAmelCase				=	square_diff.mean()
							return score

def      SCREAMING_SNAKE_CASE_  (		snake_case__     ,						snake_case__							)  ->			List[str]:
							lowerCAmelCase				=	np.array(snake_case__							)
							lowerCAmelCase				=	np.array(snake_case__							)

							lowerCAmelCase				=	predict - actual
							lowerCAmelCase				=	np.square(snake_case__							)
							lowerCAmelCase				=	square_diff.mean()
							lowerCAmelCase				=	np.sqrt(snake_case__							)
							return score

def      SCREAMING_SNAKE_CASE_  (		snake_case__     ,						snake_case__							)  ->			List[Any]:
							lowerCAmelCase				=	np.array(snake_case__							)
							lowerCAmelCase				=	np.array(snake_case__							)

							lowerCAmelCase				=	np.log(predict + 1							)
							lowerCAmelCase				=	np.log(actual + 1							)

							lowerCAmelCase				=	log_predict - log_actual
							lowerCAmelCase				=	np.square(snake_case__							)
							lowerCAmelCase				=	square_diff.mean()

							lowerCAmelCase				=	np.sqrt(snake_case__							)

							return score

def      SCREAMING_SNAKE_CASE_  (		snake_case__     ,						snake_case__							)  ->			List[Any]:
							lowerCAmelCase				=	np.array(snake_case__							)
							lowerCAmelCase				=	np.array(snake_case__							)

							lowerCAmelCase				=	predict - actual
							lowerCAmelCase				=	np.sum(snake_case__							) / len(snake_case__							)
							lowerCAmelCase				=	np.sum(snake_case__							) / len(snake_case__							)
							# print(numerator, denumerator)
							lowerCAmelCase				=	float(snake_case__							) / denumerator * 1_0_0

							return score






def      SCREAMING_SNAKE_CASE_  (		snake_case__     ,						snake_case__							)  ->			List[Any]:
							return np.mean(np.array(snake_case__							) == np.array(snake_case__							)							)




def      SCREAMING_SNAKE_CASE_  (		snake_case__     ,						snake_case__							)  ->			int:
							return (input_a, input_a).count(0							) % 2

def      SCREAMING_SNAKE_CASE_  (		)  ->			None:
							assert xor_gate(0     ,						0							) == 0
							assert xor_gate(0     ,						1							) == 1
							assert xor_gate(1     ,						0							) == 1
							assert xor_gate(1     ,						1							) == 0


if __name__ == "__main__":
	print(xor_gate(0, 0))
	print(xor_gate(0, 1))



