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

getting nan as loss for Short reviews #3

Closed
Mandark27 opened this issue Sep 7, 2019 · 2 comments
Closed

getting nan as loss for Short reviews #3

Mandark27 opened this issue Sep 7, 2019 · 2 comments

Comments

@Mandark27
Copy link

Is it applicable for short reviews? Minimum how many words must be there in a review for the model to run excluding the stopwords.

I am getting nan as loss since my output tensor from q_theta is a tensor full of nan.

@adjidieng
Copy link
Owner

Yes it works for any document size. You must have not have prepared your dataset in the right format or you might have chosen a large learning rate. Also if you choose ReLU as the activation for the inference network for q_theta, make sure you normalize the bag of words input by setting the option bow_norm to 1.

@adjidieng
Copy link
Owner

We just added the scripts to pre-process a dataset to the repo. Please check that out and let us know if you still have questions.

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