Here, you can find all the codes used for the paper

 "A provable control of sensitivity of neural networks through a direct parameterization of the overall bi-Lipschitzness".

For clarity, the codes are divided into four sections.

1. "bi_Lipschtiz_control_and_algorithm_of_LFT" includes codes mainly used in Section 4.1 (including Figure 1) and Appendix G.1-G.5 for bi-Lipschitz control, and in Appendix C for Algorithm of LFT.

2. "uncertainty_estimation" includes codes mainly used in Section 4.2 and Appendix G.6-G.7.

3. "partially_monotone" includes codes mainly used in Section 4.3. Please also see here for the codes of Table 1 (Section 4.1).

4. The file "BLNN.py" provides a simplified skeleton of our model BLNN and PBLNN.

Further details can be found in the README of each folder.
