tfl.pwl_calibration_lib.canonicalize_convexity

View source on GitHub

Converts string constants representing convexity into integers.

convexity convexity hyperparameter of PWLCalibration layer.

ValueError if convexity is invalid.

convexity represented as -1, 0 or 1.