Save the date! Google I/O returns May 18-20 Register now


Monotonicity and bounds constraints for categorical calibration layer.

Updates the weights of CategoricalCalibration layer to satify bound and monotonicity constraints. The update is an approximate L2 projection into the constrained parameter space.

output_min Minimum possible output of categorical function.
output_max Maximum possible output of categorical function.
monotonicities Monotonicities of CategoricalCalibration layer.



View source

Standard Keras config for serialization.


View source

Applies constraints to w.