Repository: spark
Updated Branches:
  refs/heads/master e553b1e8c -> 21c7d3c31


[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 <[email protected]>

Closes #16903 from moutai/master.


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/21c7d3c3
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/21c7d3c3
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/21c7d3c3

Branch: refs/heads/master
Commit: 21c7d3c31a7078f730a62e53a6252caa7fe7b338
Parents: e553b1e
Author: Moussa Taifi <[email protected]>
Authored: Sat Feb 18 14:10:21 2017 +0000
Committer: Sean Owen <[email protected]>
Committed: Sat Feb 18 14:10:21 2017 +0000

----------------------------------------------------------------------
 .../org/apache/spark/ml/classification/LogisticRegression.scala    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/21c7d3c3/mllib/src/main/scala/org/apache/spark/ml/classification/LogisticRegression.scala
----------------------------------------------------------------------
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 d2b0f2a..892e00f 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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to