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

nsample missing arguments #2

Open
eric-le-12 opened this issue Apr 18, 2022 · 1 comment
Open

nsample missing arguments #2

eric-le-12 opened this issue Apr 18, 2022 · 1 comment

Comments

@eric-le-12
Copy link

eric-le-12 commented Apr 18, 2022

Hi during running your code, i was unexpectedly see an error due to missing arguments

File "/notebooks/slamp/helpers.py", line 362, in eval_step
nsample = opt.nsample

File args.py doesnt have any definition about nsample, what does nsample mean?
I suppose it should be the number of samples per batch in evaluation which means eval batch size
Thanks for your reading

@kaanakan
Copy link
Owner

Hi,

Thank you for your interest in our work. In the literature, the stochastic models generate more than one sample because the samples differ because of the latent variables. nsample refers to the number of samples to generate for each example in the test/validation set.

Since it is used in the evaluation code, the evaluation code contains that nsample argument.

parser.add_argument('--nsample', type=int, default=100, help='number of samples')

However, if you encounter that error while training the model, then we need to fix that issue by adding nsample to args.py.

Best regards,
Kaan

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