bab2min / tomotopy

Python package of Tomoto, the Topic Modeling Tool
https://bab2min.github.io/tomotopy
MIT License
548 stars 62 forks source link

SLDA produce the same regression coefficients after training #207

Open zli12321 opened 11 months ago

zli12321 commented 11 months ago

After I trained my SLDA model with labels, I called SLDA_model.get_regression_coef(). The results contains a L x K matrix, where L is the number of unique labels in my dataset, and K is the number of topics. However, it seems that every row of the matrix is the same. That means every label is equally likely to be associated with each topic. That does not make a lot of sense to me.

47101691438689_ pic I summed the coefficients for every row and they are exactly the same