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

Module: tfl.pwl_calibration_lib

Implementation of algorithms required for PWL calibration layer.


class BoundConstraintsType: Type of bound constraints for PWL calibration.


assert_constraints(...): Asserts that 'outputs' satisfiy constraints.

compute_interpolation_weights(...): Computes weights for PWL calibration.

convert_all_constraints(...): Converts parameters of PWL calibration layer to internal format.

linear_initializer(...): Initializes PWL calibration layer to represent linear function.

project_all_constraints(...): Jointly projects into all supported constraints.

verify_hyperparameters(...): Verifies that all given hyperparameters are consistent.