tfl.linear_lib.canonicalize_monotonicities

View source on GitHub

Converts string constants representing monotonicities into integers.

monotonicities monotonicities hyperparameter of Lattice layer.

ValueError if one of monotonicities is invalid.

monotonicities represented as 0 or 1.