quynhneo / detm-arxiv Goto Github PK
View Code? Open in Web Editor NEWImplementation of Dynamic Embedding Topic Modeling on arxiv.org articles
License: GNU General Public License v3.0
Implementation of Dynamic Embedding Topic Modeling on arxiv.org articles
License: GNU General Public License v3.0
I tried using your script to train DETM but this error occur. pls can you help me fix it
Traceback (most recent call last): File "main.py", line 476, in <module> train(epoch) File "main.py", line 217, in train loss, nll, kl_alpha, kl_eta, kl_theta = model(data_batch, normalized_data_batch, times_batch, train_rnn_inp, args.num_docs_train) File "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/module.py", line 727, in _call_impl result = self.forward(*input, **kwargs) File "/content/drive/My Drive/eu/run_file/detm.py", line 199, in forward theta, kl_theta = self.get_theta(eta, normalized_bows, times) File "/content/drive/My Drive/eu/run_file/detm.py", line 161, in get_theta eta_td = eta[times.type('torch.LongTensor')] IndexError: index 66 is out of bounds for dimension 0 with size 66
Thanks for open-sourcing this project! I'm interested in working with DETM so I've been experimenting with this and your fork of the original DETM code.
With the arXiv data, do you have a baseline perplexity score or other metric for me to compare results to? I'd like to make sure my modified code performs similarly to yours on the preprint Kaggle dataset before being too confident that it's working right.
Hey, I'm writing this issue to inform you about an error occured to me when using multi-GPU training.
File "/home/[]/DETM-arxiv/detm.py", line 212, in init_hidden
weight = next(self.parameters())
StopIteration
StopIteration: Caught StopIteration in replica 0 on device 0.
This is much of a known issue in Pytorch world. As Pytorch are moving away from Dataparallel they would much unlikely to solve this, and the better way to do this is to change the code to suit for the new DistributedDataParallel.
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.