Dogs, Babies, and the Process of Learning to Generalize