MCPcopy
hub / github.com/MingchaoZhu/DeepLearning / mb_generator

Function mb_generator

code/chapter6.py:270–272  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

268 np.random.shuffle(idx)
269
270 def mb_generator():
271 for i in range(n_batches):
272 yield idx[i * batchsize : (i + 1) * batchsize]
273
274 return mb_generator(), n_batches
275

Callers 1

minibatchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected