You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by sachintyagi22 <sa...@gmail.com> on 2017/02/07 17:03:03 UTC

No topicDistributions(..) method in ml.clustering.LocalLDAModel

Hi, 

I was using ml.clustering.LDA for topic modelling (with online optimizer)
and it returns ml.clustering.LocalLDAModel. However, using this model there
doesn't seem to be any way to get the topic distribution over documents.
While older mllib API (mllib.clustering.LocalLDAModel ) does have the method
for exactly that -- topicDistributions(..)

I am not sure why it so. Specially given that the new ml.LDA uses older
mllib.LDA and wraps the older mllib.LocalLDAModel in the new
ml.LocalLDAModel.

So, can someone please clarify:
1. Why this is so?
2. What is the correct way to get topic distributions in the new
LocalLDAModel?

Thanks!



--
View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/No-topicDistributions-method-in-ml-clustering-LocalLDAModel-tp28368.html
Sent from the Apache Spark User List mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe e-mail: user-unsubscribe@spark.apache.org