QLearning model creation and training