Module: tfl.linear_lib

View source on GitHub

Implementation of algorithms required for Linear layer.

Functions

assert_constraints(...): Asserts that weights satisfy constraints.

canonicalize_monotonicities(...): Converts string constants representing monotonicities into integers.

project(...): Applies constraints to weights.

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