{"action":"created","issue":{"url":"https://api.github.com/repos/TropComplique/lda2vec-pytorch/issues/2","repository_url":"https://api.github.com/repos/TropComplique/lda2vec-pytorch","labels_url":"https://api.github.com/repos/TropComplique/lda2vec-pytorch/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/TropComplique/lda2vec-pytorch/issues/2/comments","events_url":"https://api.github.com/repos/TropComplique/lda2vec-pytorch/issues/2/events","html_url":"https://github.com/TropComplique/lda2vec-pytorch/issues/2","id":278136025,"number":2,"title":"I run python train.py and get error with File \"../utils/alias_multinomial.py\", line 57","user":{"login":"thucnt","id":8425055,"avatar_url":"https://avatars1.githubusercontent.com/u/8425055?v=4","gravatar_id":"","url":"https://api.github.com/users/thucnt","html_url":"https://github.com/thucnt","followers_url":"https://api.github.com/users/thucnt/followers","following_url":"https://api.github.com/users/thucnt/following{/other_user}","gists_url":"https://api.github.com/users/thucnt/gists{/gist_id}","starred_url":"https://api.github.com/users/thucnt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thucnt/subscriptions","organizations_url":"https://api.github.com/users/thucnt/orgs","repos_url":"https://api.github.com/users/thucnt/repos","events_url":"https://api.github.com/users/thucnt/events{/privacy}","received_events_url":"https://api.github.com/users/thucnt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2017-11-30T14:20:46Z","updated_at":"2017-12-01T09:15:12Z","closed_at":null,"author_association":"NONE","body":"Traceback (most recent call last):\r\n  File \"train.py\", line 36, in <module>\r\n    main()\r\n  File \"train.py\", line 32, in main\r\n    save_every=20, grad_clip=5.0\r\n  File \"../utils/training.py\", line 127, in train\r\n    neg_loss, dirichlet_loss = model(doc_indices, pivot_words, target_words)\r\n  File \"/Users/macbook/anaconda/lib/python3.6/site-packages/torch/nn/modules/module.py\", line 325, in __call__\r\n    result = self.forward(*input, **kwargs)\r\n  File \"../utils/lda2vec_loss.py\", line 72, in forward\r\n    neg_loss = self.neg(pivot_words, target_words, doc_vectors, w)\r\n  File \"/Users/macbook/anaconda/lib/python3.6/site-packages/torch/nn/modules/module.py\", line 325, in __call__\r\n    result = self.forward(*input, **kwargs)\r\n  File \"../utils/lda2vec_loss.py\", line 142, in forward\r\n    noise = self.multinomial.draw(batch_size*window_size*self.num_sampled)\r\n  File \"../utils/alias_multinomial.py\", line 57, in draw\r\n    b = torch.bernoulli(q)\r\nRuntimeError: invalid argument 1: must be >= 0 and <= 1 at /Volumes/OSX/Downloads/pytorch/aten/src/TH/THRandom.c:300"},"comment":{"url":"https://api.github.com/repos/TropComplique/lda2vec-pytorch/issues/comments/348443053","html_url":"https://github.com/TropComplique/lda2vec-pytorch/issues/2#issuecomment-348443053","issue_url":"https://api.github.com/repos/TropComplique/lda2vec-pytorch/issues/2","id":348443053,"user":{"login":"thucnt","id":8425055,"avatar_url":"https://avatars1.githubusercontent.com/u/8425055?v=4","gravatar_id":"","url":"https://api.github.com/users/thucnt","html_url":"https://github.com/thucnt","followers_url":"https://api.github.com/users/thucnt/followers","following_url":"https://api.github.com/users/thucnt/following{/other_user}","gists_url":"https://api.github.com/users/thucnt/gists{/gist_id}","starred_url":"https://api.github.com/users/thucnt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thucnt/subscriptions","organizations_url":"https://api.github.com/users/thucnt/orgs","repos_url":"https://api.github.com/users/thucnt/repos","events_url":"https://api.github.com/users/thucnt/events{/privacy}","received_events_url":"https://api.github.com/users/thucnt/received_events","type":"User","site_admin":false},"created_at":"2017-12-01T09:15:12Z","updated_at":"2017-12-01T09:15:12Z","author_association":"NONE","body":"Wow. A great support!!!\r\nThank you very much. It runs now."}}
{"actor":{"display_login":"thucnt"}}