@@ -27,7 +27,6 @@ import org.json4s.jackson.JsonMethods._
2727import org .apache .spark .SparkContext
2828import org .apache .spark .annotation .Experimental
2929import org .apache .spark .api .java .JavaPairRDD
30- import org .apache .spark .broadcast .Broadcast
3130import org .apache .spark .graphx .{Edge , EdgeContext , Graph , VertexId }
3231import org .apache .spark .mllib .linalg .{Matrices , Matrix , Vector , Vectors }
3332import org .apache .spark .mllib .util .{Loader , Saveable }
@@ -190,7 +189,8 @@ class LocalLDAModel private[clustering] (
190189 val topics : Matrix ,
191190 override val docConcentration : Vector ,
192191 override val topicConcentration : Double ,
193- override protected [clustering] val gammaShape : Double ) extends LDAModel with Serializable {
192+ override protected [clustering] val gammaShape : Double = 100
193+ ) extends LDAModel with Serializable {
194194
195195 override def k : Int = topics.numCols
196196
@@ -455,8 +455,9 @@ class DistributedLDAModel private[clustering] (
455455 val vocabSize : Int ,
456456 override val docConcentration : Vector ,
457457 override val topicConcentration : Double ,
458- override protected [clustering] val gammaShape : Double ,
459- private [spark] val iterationTimes : Array [Double ]) extends LDAModel {
458+ private [spark] val iterationTimes : Array [Double ],
459+ override protected [clustering] val gammaShape : Double = 100
460+ ) extends LDAModel {
460461
461462 import LDA ._
462463
0 commit comments