def split_data(seq, train_ratio, val_ratio):
    """
    Split data into train/val partitions
    """
    train_num = int(len(seq) * train_ratio)
    val_num = int(len(seq) * val_ratio)

    train_seq = seq[:train_num]
    val_seq = seq[train_num:train_num + val_num]
    test_seq = seq[train_num + val_num:]
    return train_seq, val_seq, test_seq