aboutsummaryrefslogtreecommitdiff
path: root/mllib/src
diff options
context:
space:
mode:
authorMoussa Taifi <moutai10@gmail.com>2017-02-18 14:10:21 +0000
committerSean Owen <sowen@cloudera.com>2017-02-18 14:10:21 +0000
commit21c7d3c31a7078f730a62e53a6252caa7fe7b338 (patch)
tree3eddfea3ffdc3c71b3e7f6b202b11a7a8453bb5b /mllib/src
parente553b1e8cd5b275cd00cc8d5cb7a9a0597e2bf74 (diff)
downloadspark-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.scala2
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