in minibatch adagrad, only update parameters which have been used in this minibatch
update the ducttape script