Viewing a single comment thread. View all comments

Relevant-Number7428 t1_iv9mtl5 wrote

A possible solution would be to add a large penalty term to your loss function based on this constraint. While this does not guarantee that the predictions will satisfy the constraint over many training iteration fewer predictions will break it as the loss is minimized.

2