An odyssey in learning and perception