def split_data_target(dataset):
    """Split the input CSV files into X, y vectors for sklearn implementations.

    Args:
        dataset (list): List of list of floats.
            [
                [0...n - 1]: X, feature vector
                [-1]: y, label
            ]

    Returns:
        tuple: (X, y) for sklearn implementations

    """
    try:
        return ([[float(element)
                  for element in row.strip().split(',')[:-1]]
                 for row in dataset],
                [float(row.strip().split(',')[-1])
                 for row in dataset])
    except ValueError:
        print("dataset {}".format(dataset))
        raise ValueError