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

Changed the shuffle method #12

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ThisGuyIsNotAJumpingBear

The current method for creating x_neg shuffles the indices for labels and re-distributes them. However, this method lefts roughly 10% of labels unchanged, and hence 10% of x_neg pics are actually the 'good' samples.

I attempted to solve this problem by introducing a mask layer that contains random ints from 1 to 9, adding it to the original y data, and finding the remainder of 10. This ensures that the new distribution is i.i.d (as randint is i.i.d) and no more unchanged values after the shuffle.

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

Successfully merging this pull request may close these issues.

1 participant