<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/neural-structured-learning/blob/v1.4.0/neural_structured_learning/lib/utils.py#L698-L716) |

Strips graph neighbor features from a feature dictionary.

    nsl.lib.strip_neighbor_features(
        features, neighbor_config
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `features` | Dictionary of tensors mapping feature names to tensors. This dictionary includes sample features but may or may not include corresponding neighbor features for each sample feature. |
| `neighbor_config` | An instance of [`nsl.configs.GraphNeighborConfig`](https://www.tensorflow.org/neural_structured_learning/api_docs/python/nsl/configs/GraphNeighborConfig). |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A dictionary mapping only sample feature names to tensors. Neighbor features in the input are not included. ||

<br />