Search code examples
machine-learningscikit-learnldaunsupervised-learningsklearn-pandas

Which observations are associated to the topic model in LDA with sklearn package implementation


I have successfully implemented this example in Sklearn and I can see the topics just fine,but how do I revert to the observations that those topics were formed on? I know that this is possible using SAS enterprise miner but I don't know how to do this in sklearn. Any help would be appreciated! Thank you.


Solution

  • The transform method in LDA and NMF helped give the probabilities of the observation belonging to the topics.