The valence of the long-lasting emotional experiences with various handlers modulates discrimination and generalization of individual humans in sheep.