The new minibatch interface

You can call this update from callbacks having iteration number