Skip to content

Commit a66833b

Browse files
author
DB Tsai
committed
Merge branch 'SPARK-7685' of github.com:dbtsai/spark into SPARK-7685
2 parents f6c12de + 55a28b9 commit a66833b

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

mllib/src/main/scala/org/apache/spark/ml/classification/LogisticRegression.scala

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,8 @@ class LogisticRegression(override val uid: String)
230230
override def getThreshold: Double = super.getThreshold
231231

232232
/**
233-
* Whether to over-/undersamples each of training instance according to the given
234-
* weight in `weightCol`. If empty, all instances are supposed to have weights as 1.0.
233+
* Whether to over-/under-sample training instances according to the given weights in weightCol.
234+
* If empty, all instances are treated equally (weight 1.0).
235235
* Default is empty, so all instances have weight one.
236236
* @group setParam
237237
*/
@@ -595,6 +595,8 @@ private[classification] class MultiClassSummarizer extends Serializable {
595595

596596
/**
597597
* Abstraction for multinomial Logistic Regression Training results.
598+
* Currently, the training summary ignores the training weights except
599+
* for the objective trace.
598600
*/
599601
sealed trait LogisticRegressionTrainingSummary extends LogisticRegressionSummary {
600602

mllib/src/main/scala/org/apache/spark/mllib/stat/MultivariateOnlineSummarizer.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ class MultivariateOnlineSummarizer extends MultivariateStatisticalSummary with S
186186
}
187187

188188
/**
189-
* Sample unbiased estimation of variance of each dimension.
189+
* Unbiased estimate of sample variance of each dimension.
190190
*
191191
*/
192192
@Since("1.1.0")

0 commit comments

Comments
 (0)