Binary Classification as a Phase Separation Process