Constrained neural network training and its application to hyperelastic material modeling | Synapse