reinforcement learner factory