I am trying to evaluate the topic modeling(LDA). Getting a error while execting perplexity function as: Error in (function (classes, fdef, mtable) : unable to find an inherited method for function ‘perplexity’ for signature ‘"LDA_Gibbs", "numeric"’ someone please help to solve this.
Getting an error while executing perplexity function to evaluate the LDA model
649 views Asked by Sachin At
1
There are 1 answers
Related Questions in TEXT
- Seeking Python Libraries for Removing Extraneous Characters and Spaces in Text
- How to increase quality of mathjax output?
- How to appropriately handle newlines and the escaping of them?
- How to store data with lots of subdata but keep easy and simple access in python
- Can I make this kind of radio button?
- I am findind it dificult to create a box containing text
- Replacing Text using Javascript
- How to set text inside a div using JavaScript and CSS
- How to get new text input after entering a password in a tab?
- How can I get my hero section to look like this?
- Find text and numbers Formatted: "Case: BE########" and format them, regardless of the number
- Auto style text in flutter
- Text analytics and Insights
- Combine an audio and a text file as one single file
- How to align side text and table horizontally in R-markdown
Related Questions in LDA
- set.seed() in quanteda's lda function
- Is it possible (or necessary) to run a GSDMM topic model in R?
- how do i use Latent Dirichlet Allocation with python for my dissertation topic on Trend Analysis of IoT vulnerability
- How to assign topics to individual documents/ tweets in Bi-term Topic Modeling?
- Clusters Documents and Classify New Ones
- Why does filter_extremes from the gensim variable makes it impossible for LdaMulticore to converge?
- How to reproduce gensim Lda Model
- Wants to know a topic modelling approach which will give me more suitable topics for automobile related complaints data
- Interpreting Perplexity, U_mass coherence and Cv score trends for a Latent Dirichlet Allocation Model
- How can I run DMR Topic Model using MALLET Java API?
- II there a way to get a standalone html version of the serVis visual using R?
- How to find which are all 'X' features/dimensions are selected/deselected by - LDA dimensionality reduction technique
- Why do I get a Key Error while loading my data?
- Tracing terms in topic models to their full-text version in R
- Why do I get an error message related to building wheels while installing a package?
Related Questions in TOPIC-MODELING
- Is it possible (or necessary) to run a GSDMM topic model in R?
- How to Handle Out-of-Period Terms in Dynamic Topic Modeling (DTM) using Gensim?
- How to assign topics to individual documents/ tweets in Bi-term Topic Modeling?
- Clusters Documents and Classify New Ones
- topic modeling from quotes
- stm Structural Topic Model - estimateEffect returns only 10 years
- ImportError: cannot import name 'remove_stopwords' from partially initialized module 'gensim.parsing.preprocessing'
- Wants to know a topic modelling approach which will give me more suitable topics for automobile related complaints data
- LDA Model prepare() method failure in Python
- BERTopic document visualization same color for a list of topics
- BERTopic: Probabilities are NoneType when doing supervised learning
- Interpreting Perplexity, U_mass coherence and Cv score trends for a Latent Dirichlet Allocation Model
- BERTopic: "Make sure that the iterable only contains strings"
- Trying to transcribe audio files in R
- Emojis and sentiment analysis in R
Related Questions in PERPLEXITY
- Open Flamingo Perplexity Calculation
- How do I set the package name that OpenAI uses to generate the README using the typescript generator?
- How to calculate language model's perplexity for text that exceeds memory?
- How to get perplexity per token rather than average perplexity?
- How do I calculate sentence perplexity using torch-rb?
- Can you use perplexity to guess the language of a document?
- Perplexity metric for GPT2 model is lower for non-English text
- Challenges when calculating perplexity: using bidirectional models, and dealing with large text size and values, are my approaches reasonable?
- Why is perplexity calculation giving different results for the same input?
- What is the held-out probability in Mallet LDA? How can we calculate Perplexity by the held-out probability?
- How to calculate perplexity of BERTopic?
- Large Language Model Perplexity
- Diagnostics (perplexity, LogLik, etc) for LDA topic model with textmodel_seededLDA package in R
- How to find perplexity of bigram if probability of given bigram is 0
- Why am I randomly getting super high perplexities?
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
As you haven't provided any example of your code, it's difficult to know what your exact issue is. However, I found this question when I was facing the same error so I will provide the problem I faced and solution here in the hope that it may help someone else.
In the
topicmodelspackage, when fitting using Gibbs theperplexity()function requiresnewdatato be supplied in a document-term format. If you give it something else, you get this error. Going by your error message you were probably giving it somethingnumericinstead of a dtm.Here is a working example, using the newsgroups data from the
ldapackage converted to the dtm format: