PPLM icon indicating copy to clipboard operation
PPLM copied to clipboard

seed value

Open ehsan-soe opened this issue 4 years ago • 4 comments

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?

ehsan-soe avatar May 19 '20 19:05 ehsan-soe

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

dathath avatar May 20 '20 23:05 dathath

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 avatar May 20 '20 23:05 ehsan-soe

@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.

ehsan-soe avatar May 21 '20 17:05 ehsan-soe

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.

dathath avatar May 23 '20 10:05 dathath