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

seed value #18

Open
ehsan-soe opened this issue May 19, 2020 · 4 comments
Open

seed value #18

ehsan-soe opened this issue May 19, 2020 · 4 comments

Comments

@ehsan-soe
Copy link

Hi,

I have trained a classifier and I am trying to do inference for a text file rather than a single input.
I realized that I will get a different outputs if I reorder the examples in my file. and this is because of the seeds here.
Does it really matter to generate all examples with seed 0?

@dathath
Copy link
Contributor

dathath commented May 20, 2020

You will get different samples if you change the seed, but that should be OK.

@ehsan-soe
Copy link
Author

For some reasons that I cannot figure out yet, when I generate single samples vs when I generate using all inputs from a text file, the first gives better results.
Do you have any guess?

@ehsan-soe
Copy link
Author

@dathath I think I figure out the reason.
In this regard, should the perturb and unperturbed generation happen together?
The reason I am asking is when I comment out the function call for the unpert generation, the result of pert generation degrades.

@dathath
Copy link
Contributor

dathath commented May 23, 2020

Can you point out of the lines you are commenting out? As long as you're not disabling the KL/GM terms, it should be fine.

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