Modify EarlyStopping to work with Nesterov and IRprop; Bug fix StratifiedSampler