Skip to content
Prev Previous commit
Next Next commit
scala style fix
  • Loading branch information
jkbradley committed Nov 6, 2015
commit 9589e01c0d11032bf79a61eb8fb8bf0f57eaa277
8 changes: 4 additions & 4 deletions mllib/src/main/scala/org/apache/spark/ml/clustering/LDA.scala
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,7 @@ class OnlineLDAOptimizer @Since("1.6.0") (

/** @group setParam */
@Since("1.6.0")
def setTau0(value: Double) = set(tau0, value)
def setTau0(value: Double): this.type = set(tau0, value)

/**
* Learning rate, set as an exponential decay rate.
Expand All @@ -679,7 +679,7 @@ class OnlineLDAOptimizer @Since("1.6.0") (

/** @group setParam */
@Since("1.6.0")
def setKappa(value: Double) = set(kappa, value)
def setKappa(value: Double): this.type = set(kappa, value)

/** @group getParam */
@Since("1.6.0")
Expand Down Expand Up @@ -714,7 +714,7 @@ class OnlineLDAOptimizer @Since("1.6.0") (

/** @group setParam */
@Since("1.6.0")
def setSubsamplingRate(value: Double) = set(subsamplingRate, value)
def setSubsamplingRate(value: Double): this.type = set(subsamplingRate, value)

/**
* Indicates whether the docConcentration (Dirichlet parameter for
Expand All @@ -736,5 +736,5 @@ class OnlineLDAOptimizer @Since("1.6.0") (

/** @group setParam */
@Since("1.6.0")
def setOptimizeDocConcentration(value: Boolean) = set(optimizeDocConcentration, value)
def setOptimizeDocConcentration(value: Boolean): this.type = set(optimizeDocConcentration, value)
}