Breaking changes in 0.2.0: the learner now requires a reward function separately.