Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Hi, a suggestion of shuffling data :) #5

Open
zchen0211 opened this issue May 11, 2016 · 1 comment
Open

Hi, a suggestion of shuffling data :) #5

zchen0211 opened this issue May 11, 2016 · 1 comment

Comments

@zchen0211
Copy link

Hi,

A suggestion of shuffling data in train():

index = np.arange(len(feats))
np.random.shuffle(index)
feats = feats[index]
captions = captions[index]

These lines should be executed every time after the epoch is finished.

Welcome to more discussion of tensorflow implementation!

@jazzsaxmafia
Copy link
Owner

Thank you for your suggestion! I should have put shuffling code.

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

No branches or pull requests

2 participants