

'''simple docstring'''

import numpy as np





def 				A_					(	snake_case ,    snake_case	):
  SCREAMING_SNAKE_CASE:Tuple   =   np.array(snake_case	)
  SCREAMING_SNAKE_CASE:List[str]   =   np.array(snake_case	)

  SCREAMING_SNAKE_CASE:int   =   abs(predict - actual	)
  SCREAMING_SNAKE_CASE:Union[str, Any]   =   difference.mean()

  return score





def 				A_					(	snake_case ,    snake_case	):
  SCREAMING_SNAKE_CASE:Union[str, Any]   =   np.array(snake_case	)
  SCREAMING_SNAKE_CASE:Optional[Any]   =   np.array(snake_case	)

  SCREAMING_SNAKE_CASE:int   =   predict - actual
  SCREAMING_SNAKE_CASE:Any   =   np.square(snake_case	)

  SCREAMING_SNAKE_CASE:Optional[Any]   =   square_diff.mean()
  return score





def 				A_					(	snake_case ,    snake_case	):
  SCREAMING_SNAKE_CASE:Tuple   =   np.array(snake_case	)
  SCREAMING_SNAKE_CASE:Any   =   np.array(snake_case	)

  SCREAMING_SNAKE_CASE:List[Any]   =   predict - actual
  SCREAMING_SNAKE_CASE:Union[str, Any]   =   np.square(snake_case	)
  SCREAMING_SNAKE_CASE:Union[str, Any]   =   square_diff.mean()
  SCREAMING_SNAKE_CASE:List[Any]   =   np.sqrt(snake_case	)
  return score





def 				A_					(	snake_case ,    snake_case	):
  SCREAMING_SNAKE_CASE:Union[str, Any]   =   np.array(snake_case	)
  SCREAMING_SNAKE_CASE:Optional[Any]   =   np.array(snake_case	)

  SCREAMING_SNAKE_CASE:Optional[Any]   =   np.log(predict + 1	)
  SCREAMING_SNAKE_CASE:Optional[Any]   =   np.log(actual + 1	)

  SCREAMING_SNAKE_CASE:Optional[int]   =   log_predict - log_actual
  SCREAMING_SNAKE_CASE:Tuple   =   np.square(snake_case	)
  SCREAMING_SNAKE_CASE:List[str]   =   square_diff.mean()

  SCREAMING_SNAKE_CASE:int   =   np.sqrt(snake_case	)

  return score





def 				A_					(	snake_case ,    snake_case	):
  SCREAMING_SNAKE_CASE:Any   =   np.array(snake_case	)
  SCREAMING_SNAKE_CASE:Union[str, Any]   =   np.array(snake_case	)

  SCREAMING_SNAKE_CASE:Dict   =   predict - actual
  SCREAMING_SNAKE_CASE:Dict   =   np.sum(snake_case	) / len(snake_case	)
  SCREAMING_SNAKE_CASE:Optional[int]   =   np.sum(snake_case	) / len(snake_case	)
  # print(numerator, denumerator)
  SCREAMING_SNAKE_CASE:List[Any]   =   float(snake_case	) / denumerator * 100

  return score





def 				A_					(	snake_case ,    snake_case	):
  return np.mean(np.array(snake_case	) == np.array(snake_case	)	)









'''simple docstring'''

def 				A_					(	snake_case	):
  return "".join(chr(ord(snake_case	) + 32	) if "A" <= char <= "Z" else char for char in word	)


if __name__ == "__main__":
    from doctest import testmod

    testmod()






