tfl.lattice_lib.canonicalize_trust

View source on GitHub

Converts string constants representing trust direction into integers.

trusts edgeworth_trusts or trapezoid_trusts hyperparameter of Lattice layer.

ValueError if one of trust constraints is invalid.

Trust constraints with direction represented as 0 or 1.