Learning with boundary conditions.

Learning with boundary conditions.