A Learning Based Iterative Method