def conflicting_indices(X):
    """Finds where the indices are in the rest of feature matrix. This assures
    that the correct indices are dropped.

    Parameters
    ----------
    X : 2D array
        The embed indices. This is the same shape as the actual embedded time
        series.

    Returns
    -------
    conf_ind : 1d array
        Conflicting indices to be dropped.
    """
    conf_ind = []
    for i in range(len(X)):
        inds = []
        for j in range(len(X)):
            if len(set(X[i]).intersection(X[j])) > 0:
                inds.append(j)
        conf_ind.append(inds)
    return conf_ind
