ML Community Day is November 9! Join us for updates from TensorFlow, JAX, and more Learn more

Module: tfl.pwl_calibration_sonnet_module

Piecewise linear calibration layer.

Sonnet (v2) implementation of tensorflow lattice pwl calibration module. Module takes single or multi-dimensional input and transforms it using piecewise linear functions following monotonicity, convexity/concavity and bounds constraints if specified.


class PWLCalibration: Piecewise linear calibration layer.

INTERPOLATION_KEYPOINTS_NAME 'interpolation_keypoints'
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'