diff options
author | Moussa Taifi <moutai10@gmail.com> | 2017-02-18 14:10:21 +0000 |
---|---|---|
committer | Sean Owen <sowen@cloudera.com> | 2017-02-18 14:10:21 +0000 |
commit | 21c7d3c31a7078f730a62e53a6252caa7fe7b338 (patch) | |
tree | 3eddfea3ffdc3c71b3e7f6b202b11a7a8453bb5b /mllib/src | |
parent | e553b1e8cd5b275cd00cc8d5cb7a9a0597e2bf74 (diff) | |
download | spark-21c7d3c31a7078f730a62e53a6252caa7fe7b338.tar.gz spark-21c7d3c31a7078f730a62e53a6252caa7fe7b338.tar.bz2 spark-21c7d3c31a7078f730a62e53a6252caa7fe7b338.zip |
[MLLIB][TYPO] Replace LeastSquaresAggregator with LogisticAggregator
## What changes were proposed in this pull request?
Replace LeastSquaresAggregator with LogisticAggregator in the require statement of the merge op.
## How was this patch tested?
Simple message fix.
Author: Moussa Taifi <moutai10@gmail.com>
Closes #16903 from moutai/master.
Diffstat (limited to 'mllib/src')
-rw-r--r-- | mllib/src/main/scala/org/apache/spark/ml/classification/LogisticRegression.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mllib/src/main/scala/org/apache/spark/ml/classification/LogisticRegression.scala b/mllib/src/main/scala/org/apache/spark/ml/classification/LogisticRegression.scala index d2b0f2a9e1..892e00fa60 100644 --- a/mllib/src/main/scala/org/apache/spark/ml/classification/LogisticRegression.scala +++ b/mllib/src/main/scala/org/apache/spark/ml/classification/LogisticRegression.scala @@ -1603,7 +1603,7 @@ private class LogisticAggregator( */ def merge(other: LogisticAggregator): this.type = { require(numFeatures == other.numFeatures, s"Dimensions mismatch when merging with another " + - s"LeastSquaresAggregator. Expecting $numFeatures but got ${other.numFeatures}.") + s"LogisticAggregator. Expecting $numFeatures but got ${other.numFeatures}.") if (other.weightSum != 0.0) { weightSum += other.weightSum |