Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Why replace=False? #4

Open
a554b554 opened this issue Jan 15, 2019 · 1 comment
Open

Why replace=False? #4

a554b554 opened this issue Jan 15, 2019 · 1 comment

Comments

@a554b554
Copy link

In gan.py line 401,
data_ids = np.random.choice(train_size, opts['batch_size'],
replace=False, p=self._data_weights)
Why use replace=False here?

@tolstikhin
Copy link
Owner

Well, I guess sampling minibatches with and without replacements are both common approaches. Here we used without replacements.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants