






'''simple docstring'''







import numpy as np


def 			__UpperCamelCase				(			lowercase_					:     str      ,					lowercase_					:     Dict      ):
       """simple docstring"""




       a_	    = np.array(lowercase_      )
       a_	    = np.array(lowercase_      )

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

       return score


def 			__UpperCamelCase				(			lowercase_					:     int      ,					lowercase_					:     str      ):
       """simple docstring"""




       a_	    = np.array(lowercase_      )
       a_	    = np.array(lowercase_      )

       a_	    = predict - actual
       a_	    = np.square(lowercase_      )

       a_	    = square_diff.mean()
       return score


def 			__UpperCamelCase				(			lowercase_					:     Dict      ,					lowercase_					:     Tuple      ):
       """simple docstring"""




       a_	    = np.array(lowercase_      )
       a_	    = np.array(lowercase_      )

       a_	    = predict - actual
       a_	    = np.square(lowercase_      )
       a_	    = square_diff.mean()
       a_	    = np.sqrt(lowercase_      )
       return score


def 			__UpperCamelCase				(			lowercase_					:     Union[str, Any]      ,					lowercase_					:     Optional[Any]      ):
       """simple docstring"""




       a_	    = np.array(lowercase_      )
       a_	    = np.array(lowercase_      )

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

       a_	    = log_predict - log_actual
       a_	    = np.square(lowercase_      )
       a_	    = square_diff.mean()

       a_	    = np.sqrt(lowercase_      )

       return score


def 			__UpperCamelCase				(			lowercase_					:     Dict      ,					lowercase_					:     List[str]      ):
       """simple docstring"""




       a_	    = np.array(lowercase_      )
       a_	    = np.array(lowercase_      )

       a_	    = predict - actual
       a_	    = np.sum(lowercase_      ) / len(lowercase_      )
       a_	    = np.sum(lowercase_      ) / len(lowercase_      )
       # print(numerator, denumerator)
       a_	    = float(lowercase_      ) / denumerator * 100

       return score


def 			__UpperCamelCase				(			lowercase_					:     int      ,					lowercase_					:     Dict      ):
       """simple docstring"""




       return np.mean(np.array(lowercase_      ) == np.array(lowercase_      )      )












'''simple docstring'''







def 			__UpperCamelCase				(			lowercase_					:     int      ,					lowercase_					:     int      ):
       """simple docstring"""




       return (input_a, input_a).count(0      ) % 2


def 			__UpperCamelCase				(			):
       """simple docstring"""




       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))




