You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by sr...@apache.org on 2017/02/18 14:10:22 UTC
spark git commit: [MLLIB][TYPO] Replace LeastSquaresAggregator with
LogisticAggregator
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 <mo...@gmail.com>
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 <mo...@gmail.com>
Authored: Sat Feb 18 14:10:21 2017 +0000
Committer: Sean Owen <so...@cloudera.com>
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: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org