Github user jkbradley commented on a diff in the pull request:
https://github.com/apache/spark/pull/7705#discussion_r35726182
--- Diff:
mllib/src/main/scala/org/apache/spark/mllib/clustering/LDAModel.scala ---
@@ -168,7 +194,22 @@ abstract class LDAModel private[clustering] extends
Saveable {
*/
@Experimental
class LocalLDAModel private[clustering] (
- private val topics: Matrix) extends LDAModel with Serializable {
+ private val topics: Matrix,
+ protected val docConcentration: Vector,
+ protected val topicConcentration: Double,
+ protected val gammaShape: Double) extends LDAModel with Serializable {
+
+ /**
+ * Backwards compatibility constructor, assumes symmetric
docConcentration=1/numTopics,
+ * topicConcentration=1, gammaShape=100. This is probably NOT what you
want (instead you should
+ * set the parameters explicitly in constructor)
+ * @deprecated Provide alpha, eta, and gammaShape in constructor.
+ */
+ @deprecated(
--- End diff --
We don't need to provide this since the constructor is a private API.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]