tfl.pwl_calibration_lib.canonicalize_monotonicity

View source on GitHub

Converts string constants representing monotonicity into integers.

monotonicity monotonicity hyperparameter of PWLCalibration layer.

ValueError if monotonicity is invalid.

monotonicity represented as -1, 0 or 1.