Transforming for Q-Learning