"""simple docstring"""



import numpy as np
from sklearn.datasets import fetch_california_housing
from sklearn.metrics import mean_absolute_error, mean_squared_error
from sklearn.model_selection import train_test_split
from xgboost import XGBRegressor



def 					_lowerCamelCase(					a							):
							return (data["data"], data["target"])



def 					_lowerCamelCase(					a ,  a ,  a							):
							__a     				=  XGBRegressor(verbosity=0 ,  random_state=4_2							)
							xgb.fit(a ,  a							)
							# Predict target for test data
							__a     				=  xgb.predict(a							)
							__a     				=  predictions.reshape(len(a							) ,  1							)
							return predictions



def 					_lowerCamelCase(					):
							__a     				=  fetch_california_housing()
							__a				, __a     				=  data_handling(a							)
							__a				, __a				, __a				, __a     				=  train_test_split(
							    a ,  a ,  test_size=0.25 ,  random_state=1							)
							__a     				=  xgboost(a ,  a ,  a							)
							# Error printing
							print(F"Mean Absolute Error : {mean_absolute_error(a ,  a							)}"							)
							print(F"Mean Square Error  : {mean_squared_error(a ,  a							)}"							)


if __name__ == "__main__":
			import doctest

			doctest.testmod(verbose=True)
			main()

"""simple docstring"""



SCREAMING_SNAKE_CASE__:Any			=	{
    """A""": """.-""", """B""": """-...""", """C""": """-.-.""", """D""": """-..""", """E""": """.""", """F""": """..-.""", """G""": """--.""",
    """H""": """....""", """I""": """..""", """J""": """.---""", """K""": """-.-""", """L""": """.-..""", """M""": """--""", """N""": """-.""",
    """O""": """---""", """P""": """.--.""", """Q""": """--.-""", """R""": """.-.""", """S""": """...""", """T""": """-""", """U""": """..-""",
    """V""": """...-""", """W""": """.--""", """X""": """-..-""", """Y""": """-.--""", """Z""": """--..""", """1""": """.----""",
    """2""": """..---""", """3""": """...--""", """4""": """....-""", """5""": """.....""", """6""": """-....""", """7""": """--...""",
    """8""": """---..""", """9""": """----.""", """0""": """-----""", """&""": """.-...""", """@""": """.--.-.""",
    """:""": """---...""", """,""": """--..--""", """.""": """.-.-.-""", """'""": """.----.""", """\"""": """.-..-.""",
    """?""": """..--..""", """/""": """-..-.""", """=""": """-...-""", """+""": """.-.-.""", """-""": """-....-""",
    """(""": """-.--.""", """)""": """-.--.-""", """!""": """-.-.--""", """ """: """/"""
}  # Exclamation mark is not in ITU-R recommendation
# fmt: on
SCREAMING_SNAKE_CASE__:Any			=	{value: key for key, value in MORSE_CODE_DICT.items()}



def 					_lowerCamelCase(					a							):
       return " ".join(MORSE_CODE_DICT[char] for char in message.upper()							)



def 					_lowerCamelCase(					a							):
       return "".join(REVERSE_DICT[char] for char in message.split()							)



def 					_lowerCamelCase(					):
       __a     				=  "Morse code here!"
       print(a							)
       __a     				=  encrypt(a							)
       print(a							)
       __a     				=  decrypt(a							)
       print(a							)


if __name__ == "__main__":
   main()
