(X, batch_size)
| 57 | |
| 58 | |
| 59 | def gen_batch(X, batch_size): |
| 60 | |
| 61 | while True: |
| 62 | idx = np.random.choice(X.shape[0], batch_size, replace=False) |
| 63 | yield X[idx] |
| 64 | |
| 65 | |
| 66 | def sample_noise(noise_scale, batch_size, noise_dim): |
nothing calls this directly
no outgoing calls
no test coverage detected