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
Error in seq_len(nrow(x)) : argument must be coercible to non-negative integer #10
Comments
code Did you check on what you were passing on to the function calls? |
Thank you, I will work on your query and input above. Earlier, though, I changed my dataset to a little bit more data, which resulted to these dimensions:
After entering this command: loss <- model$fit(data = dtm, optimizer = optimizer, epoch = 20, batch_size = 1000), the prior error did not come out. But I got this new error instead:
I will review the R code as well... |
|
I tried the algorithm on the 20 newsgroups dataset, and it worked smoothly! (Just had a ggrepel warning saying "10 unlabeled data points (too many overlaps). Consider increasing max.overlaps.") I will look for a larger dataset than the one I'm using. I will also look into the NA values in embeddings for the previous dataset. These may be the sources of the original error I had been encountering. I will also try the other suggested plots in pythonrepo. Thank you very much for your great help! 👍 👍 👍 |
Hello! When I first tried your ETM package in R using the Belgian parliament data, it worked. However, when I was testing it on my (small) data, after running the ETM() function and optimizer, I encountered this error:
Error in seq_len(nrow(x)) : argument must be coercible to non-negative integer
Here is my code:
As you may see in the code, for the ETM function, I changed args to k=5 topics. For model$fit, I changed args to batch_size =5.
After running the last line above with "model$fit", the following error occurs:
Error in
seq_len(nrow(x))
: argument must be coercible to non-negative integerIs this because I am trying to run a small dataset? How may I solve this?
Thank you in advance! :)
The text was updated successfully, but these errors were encountered: