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

why is loss_nce NaN through out the training phase ? #4

Open
vijeth8 opened this issue Apr 14, 2017 · 2 comments
Open

why is loss_nce NaN through out the training phase ? #4

vijeth8 opened this issue Apr 14, 2017 · 2 comments

Comments

@vijeth8
Copy link

vijeth8 commented Apr 14, 2017

No description provided.

@vijeth8 vijeth8 changed the title why is loss_nce is NaN through out the training phase ? why is loss_nce NaN through out the training phase ? Apr 14, 2017
@meereeum
Copy link
Owner

meereeum commented Aug 9, 2017

@vijeth8 can you provide more context ? i don't see this.

@kkrasnas
Copy link

I have this problem for my tests. I use Bloomberg news from financial news dataset https://github.com/philipperemy/financial-news-dataset, where I am taking only 10 documents for testing. And I want 10 documents clustered into 5 topics.
Particularly when the window equals 4, loss_nce is often NaN, and for window size 5 I get an error:

model.py", line 253, in make_feed_dict
    rand = np.random.uniform(0, 1, doc_is_same.shape[0])
AttributeError: 'bool' object has no attribute 'shape'

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

3 participants