<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/keras/layers/__init__.py) |

Keras layers for Neural Structured Learning.

## Classes

[`class NeighborFeatures`](https://www.tensorflow.org/neural_structured_learning/api_docs/python/nsl/keras/layers/NeighborFeatures): A layer to unpack a dictionary of sample features and neighbor features.

[`class PairwiseDistance`](https://www.tensorflow.org/neural_structured_learning/api_docs/python/nsl/keras/layers/PairwiseDistance): A layer for computing a pairwise distance in Keras models.

## Functions

[`make_missing_neighbor_inputs(...)`](https://www.tensorflow.org/neural_structured_learning/api_docs/python/nsl/keras/layers/make_missing_neighbor_inputs): Makes additional inputs for neighbor features if necessary.