-
- Downloads
[SPARK-9788] [MLLIB] Fix LDA Binary Compatibility
1. Add “asymmetricDocConcentration” and revert docConcentration changes. If the (internal) doc concentration vector is a single value, “getDocConcentration" returns it. If it is a constant vector, getDocConcentration returns the first item, and fails otherwise. 2. Give `LDAModel.gammaShape` a default value in `LDAModel` concrete class constructors. jkbradley Author: Feynman Liang <fliang@databricks.com> Closes #8077 from feynmanliang/SPARK-9788 and squashes the following commits: 6b07bc8 [Feynman Liang] Code review changes 9d6a71e [Feynman Liang] Add asymmetricAlpha alias bf4e685 [Feynman Liang] Asymmetric docConcentration 4cab972 [Feynman Liang] Default gammaShape
Showing
- mllib/src/main/scala/org/apache/spark/mllib/clustering/LDA.scala 24 additions, 3 deletions...rc/main/scala/org/apache/spark/mllib/clustering/LDA.scala
- mllib/src/main/scala/org/apache/spark/mllib/clustering/LDAModel.scala 6 additions, 5 deletions...in/scala/org/apache/spark/mllib/clustering/LDAModel.scala
- mllib/src/main/scala/org/apache/spark/mllib/clustering/LDAOptimizer.scala 14 additions, 14 deletions...cala/org/apache/spark/mllib/clustering/LDAOptimizer.scala
- mllib/src/test/scala/org/apache/spark/mllib/clustering/LDASuite.scala 2 additions, 2 deletions...st/scala/org/apache/spark/mllib/clustering/LDASuite.scala
Loading
Please register or sign in to comment