Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ddbourgin/numpy-ml
/ mb_generator
Function
mb_generator
numpy_ml/preprocessing/general.py:47–49 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
45
np.random.shuffle(ix)
46
47
def
mb_generator():
48
for
i in range(n_batches):
49
yield
ix[i * batchsize : (i + 1) * batchsize]
50
51
return
mb_generator(), n_batches
52
Callers
1
minibatch
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected