# tfl.categorical_calibration_lib.verify_hyperparameters

<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/categorical_calibration_lib.py#L127-L160) |

Verifies that all given hyperparameters are consistent.

    tfl.categorical_calibration_lib.verify_hyperparameters(
        num_buckets=None, output_min=None, output_max=None, monotonicities=None
    )

See [`tfl.layers.CategoricalCalibration`](https://www.tensorflow.org/lattice/api_docs/python/tfl/layers/CategoricalCalibration) class level comment for detailes.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `num_buckets` | `num_buckets` of CategoricalCalibration layer. |
| `output_min` | `smallest output` of CategoricalCalibration layer. |
| `output_max` | `largest output` of CategoricalCalibration layer. |
| `monotonicities` | `monotonicities` of CategoricalCalibration layer. |

<br />

<br />

<br />

<br />

| ## Raises ||
|---|---|
| `ValueError` | If parameters are incorrect or inconsistent. |

<br />