lda2vec-pytorch icon indicating copy to clipboard operation
lda2vec-pytorch copied to clipboard

Please give an example to explain how to run this code.

Open WisonHuang opened this issue 8 years ago • 3 comments

WisonHuang avatar Sep 23 '17 08:09 WisonHuang

Hi! This is an unfinished implementation of this paper: https://arxiv.org/abs/1605.02019

How to run it:

  1. preprocess_data.ipynb
  2. get_windows.ipynb
  3. train.ipynb - but the gradient for some reason explodes. I hope, next week I will fix this implementation.

TropComplique avatar Sep 23 '17 19:09 TropComplique

Hi Антощенко,

Thanks for your effort to implement LDA2vec with pytorch. You might have noticed the gradient issue that results in the halt of total losses during training. I'm really curious about the cause of the issue, would you please also inform me of the details of the problem after fixing it? Thanks and good luck!

qiaochen avatar Sep 29 '17 05:09 qiaochen

The cause of the issue was logarithm function. I fixed the problem by changing log(x) to log(x + epsilon) where epsilon is small.

TropComplique avatar Nov 18 '17 16:11 TropComplique