Modifies number of epochs and number of iterations