def get_x_y_set(mt, type="test"):
    """Gets data set from ModelTuning object

    Parameters
    ----------
    mt : ModelTuning object
        ModelTuning object used
    type : str, default="test"
        specifies which set to return ('train'/'test'/'val')

    Returns
    ----------
    X_data, y_data : ndarray
    """
    if type == "val":
        return mt.get_validation_set()
    if type == "train":
        return mt.get_train_set()
    if type == "test":
        return mt.get_test_set()