Skip to content

Commit a1f5695

Browse files
committed
minor cleanup
1 parent 7823f8a commit a1f5695

File tree

3 files changed

+12
-16
lines changed

3 files changed

+12
-16
lines changed

mllib/src/main/scala/org/apache/spark/ml/optim/IterativelyReweightedLeastSquares.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import org.apache.spark.ml.linalg._
2323
import org.apache.spark.ml.regression.GLRInstance
2424
import org.apache.spark.rdd.RDD
2525

26-
2726
/**
2827
* Model fitted by [[IterativelyReweightedLeastSquares]].
2928
* @param coefficients model coefficients

mllib/src/main/scala/org/apache/spark/ml/param/shared/sharedParams.scala

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -374,14 +374,14 @@ private[ml] trait HasWeightCol extends Params {
374374
}
375375

376376
/**
377-
* Trait for shared param offsetCol.
378-
*/
377+
* Trait for shared param offsetCol.
378+
*/
379379
private[ml] trait HasOffsetCol extends Params {
380380

381381
/**
382-
* Param for offset column name. If this is not set or empty, we treat all instance offsets as 0.0.
383-
* @group param
384-
*/
382+
* Param for offset column name. If this is not set or empty, we treat all instance offsets as 0.0.
383+
* @group param
384+
*/
385385
final val offsetCol: Param[String] = new Param[String](this, "offsetCol", "offset column name. If this is not set or empty, we treat all instance offsets as 0.0")
386386

387387
/** @group getParam */

mllib/src/main/scala/org/apache/spark/ml/regression/GeneralizedLinearRegression.scala

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -224,13 +224,13 @@ class GeneralizedLinearRegression @Since("2.0.0") (@Since("2.0.0") override val
224224
def setWeightCol(value: String): this.type = set(weightCol, value)
225225

226226
/**
227-
* Sets the value of param [[offsetCol]].
228-
* The feature specified as offset has a constant coefficient of 1.0.
229-
* If this is not set or empty, we treat all instance offsets as 0.0.
230-
* Default is not set, so all instances have offset 0.0.
231-
*
232-
* @group setParam
233-
*/
227+
* Sets the value of param [[offsetCol]].
228+
* The feature specified as offset has a constant coefficient of 1.0.
229+
* If this is not set or empty, we treat all instance offsets as 0.0.
230+
* Default is not set, so all instances have offset 0.0.
231+
*
232+
* @group setParam
233+
*/
234234
@Since("2.2.0")
235235
def setOffsetCol(value: String): this.type = set(offsetCol, value)
236236

@@ -1206,6 +1206,3 @@ private[ml] case class GLRInstance(label: Double, weight: Double, offset: Double
12061206
private[ml] def toInstance: Instance = Instance(label, weight, features)
12071207

12081208
}
1209-
1210-
1211-

0 commit comments

Comments
 (0)