Cooper: A PyTorch Library for Constrained Deep Learning
A practical toolbox for training deep nets under constraints.I co-develop Cooper, an open-source PyTorch library for non-convex constrained optimization that lets you train deep models under explicit constraints. The goal is to make it practical to state requirements (fairness, sparsity, safety) as constraints and actually enforce them during training — the only assumption is that the constraints are (sub-)differentiable in PyTorch. [Docs] [Paper]