# tfl.premade_lib.set_categorical_monotonicities

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/lattice/blob/v2.1.1/tensorflow_lattice/python/premade_lib.py#L903-L942) |

Maps categorical monotonicities to indices based on specified vocab list.

#### View aliases


**Main aliases**

[`tfl.premade.premade_lib.set_categorical_monotonicities`](https://www.tensorflow.org/lattice/api_docs/python/tfl/premade_lib/set_categorical_monotonicities)

<br />

    tfl.premade_lib.set_categorical_monotonicities(
        feature_configs
    )

### Used in the notebooks

| Used in the tutorials |
|---|
| - [Shape Constraints with Tensorflow Lattice](https://www.tensorflow.org/lattice/tutorials/shape_constraints) - [TF Lattice Premade Models](https://www.tensorflow.org/lattice/tutorials/premade_models) |

<br />

<br />

<br />

| ## Args ||
|---|---|
| `feature_configs` | A list of [`tfl.configs.FeatureConfig`](https://www.tensorflow.org/lattice/api_docs/python/tfl/configs/FeatureConfig) objects. |

<br />