calculate topic probabilities after fitting #774
Unanswered
aminathshausan
asked this question in
Q&A
Replies: 1 comment
|
Hello. I have a similar question: Fitting many data points (approx. 1 M) is no problem. But as soon as soft clustering is applied and the "hdbscan.all_points_membership_vectors" function is called, I run into issues. So the idea was to fit the BERTopic model and transform the dataset in batches and calculate the probabilities afterwards. To conclude, probabilities shouldn't be calculated during the fitting, but later during the transformation. Many thanks in advance for any feedback and assistance. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi,
I wanted to visualize distribution of topics within a document, using
topic_model.visualize_distribution(probabilities[0]).However, I missed to state
caculate_probabilities = Truein model fitting (BERTopic( )).Is there a way I can compute the probabilities without re-fitting the model? When I re-fitted the model, it will give different topics due to stochasticity.
Else, is there a way I could visualise distribution of topics for a given document?
Thanks
All reactions