def _train_dev_split(X, y, dev_ratio=0.25):
    """
    This function spilts data into training set and development set.
    """
    train_size = int(len(X) * (1 - dev_ratio))
    return X[:train_size], y[:train_size], X[train_size:], y[train_size:]