Use max to ensure that to avoid a crash when minibatchsize > nrData
Use max to ensure that to avoid a crash when minibatchsize > nrData

Warvito/pydeeplearn,mihaelacr/pydeeplearn,snurkabill/pydeeplearn,snurkabill/pydeeplearn,Warvito/pydeeplearn