Curriculum Learning by Transfer Learning: Theory and Experiments with Deep Networks