Curriculum Learning with a Progression Function