Learning How to Set Boundaries