# Module: tfl.pwl_calibration_layer

<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/pwl_calibration_layer.py) |

Piecewise linear calibration layer.

Keras implementation of tensorflow lattice pwl calibration layer. Layer takes
single or multi-dimensional input and transforms it using piecewise linear
functions following monotonicity, convexity/concavity and bounds constraints if
specified.

## Classes

[`class HessianRegularizer`](https://www.tensorflow.org/lattice/api_docs/python/tfl/pwl_calibration_layer/HessianRegularizer): Hessian regularizer for PWL calibration layer.

[`class LaplacianRegularizer`](https://www.tensorflow.org/lattice/api_docs/python/tfl/pwl_calibration_layer/LaplacianRegularizer): Laplacian regularizer for PWL calibration layer.

[`class NaiveBoundsConstraints`](https://www.tensorflow.org/lattice/api_docs/python/tfl/pwl_calibration_layer/NaiveBoundsConstraints): Naively clips all elements of tensor to be within bounds.

[`class PWLCalibrationConstraints`](https://www.tensorflow.org/lattice/api_docs/python/tfl/pwl_calibration_layer/PWLCalibrationConstraints): Monotonicity and bounds constraints for PWL calibration layer.

[`class UniformOutputInitializer`](https://www.tensorflow.org/lattice/api_docs/python/tfl/pwl_calibration_layer/UniformOutputInitializer): Initializes PWL calibration layer to represent linear function.

[`class WrinkleRegularizer`](https://www.tensorflow.org/lattice/api_docs/python/tfl/pwl_calibration_layer/WrinkleRegularizer): Wrinkle regularizer for PWL calibration layer.

<br />

<br />

<br />

| ## Other Members ||
|---|---|
| INTERPOLATION_KEYPOINTS_NAME | `'interpolation_keypoints'` |
| INTERPOLATION_LOGITS_NAME | `'interpolation_logits'` |
| LENGTHS_NAME | `'lengths'` |
| MISSING_INPUT_VALUE_NAME | `'missing_input_value'` |
| PWL_CALIBRATION_KERNEL_NAME | `'pwl_calibration_kernel'` |
| PWL_CALIBRATION_MISSING_OUTPUT_NAME | `'pwl_calibration_missing_output'` |
| absolute_import | Instance of `__future__._Feature` |
| division | Instance of `__future__._Feature` |
| print_function | Instance of `__future__._Feature` |

<br />