
def 						__magic_name__			(   __a      :	int	,		__a      :	int						):



     '''simple docstring'''




     return abs(__a						) if a == 0 else greatest_common_divisor(b % a	,		__a						)






def 						__magic_name__			(   __a      :	int	,		__a      :	int						):



     '''simple docstring'''




     while y:  # --> when y=0 then loop will terminate and return x as final GCD.
          UpperCamelCase__		,	UpperCamelCase__				=    y, x % y
     return abs(__a						)






def 						__magic_name__			(   ):



     '''simple docstring'''




     try:
          UpperCamelCase__				=    input("""Enter two integers separated by comma (,): """						).split(""","""						)
          UpperCamelCase__				=    int(nums[0]						)
          UpperCamelCase__				=    int(nums[1]						)
          print(
              f"greatest_common_divisor({num_a}, {num_a}) = "
              f"{greatest_common_divisor(__a	,		__a						)}"						)
          print(f"By iterative gcd({num_a}, {num_a}) = {gcd_by_iterative(__a	,		__a						)}"						)
     except (IndexError, UnboundLocalError, ValueError):
          print("""Wrong input"""						)


if __name__ == "__main__":
    main()







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 						__magic_name__			(   __a      :	dict						):



     '''simple docstring'''




     return (data["data"], data["target"])






def 						__magic_name__			(   __a      :	np.ndarray	,		__a      :	np.ndarray	,		__a      :	np.ndarray						):



     '''simple docstring'''




     UpperCamelCase__				=    XGBRegressor(verbosity=0	,		random_state=42						)
     xgb.fit(__a	,		__a						)
     # Predict target for test data
     UpperCamelCase__				=    xgb.predict(__a						)
     UpperCamelCase__				=    predictions.reshape(len(__a						)	,		1						)
     return predictions






def 						__magic_name__			(   ):



     '''simple docstring'''




     UpperCamelCase__				=    fetch_california_housing()
     UpperCamelCase__		,	UpperCamelCase__				=    data_handling(__a						)
     UpperCamelCase__		,	UpperCamelCase__		,	UpperCamelCase__		,	UpperCamelCase__				=    train_test_split(
         __a	,		__a	,		test_size=0.25	,		random_state=1						)
     UpperCamelCase__				=    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()





