You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by rx...@apache.org on 2014/01/16 05:15:50 UTC
[6/6] git commit: Merge pull request #414 from soulmachine/code-style
Merge pull request #414 from soulmachine/code-style
Code clean up for mllib
* Removed unnecessary parentheses
* Removed unused imports
* Simplified `filter...size()` to `count ...`
* Removed obsoleted parameters' comments
Project: http://git-wip-us.apache.org/repos/asf/incubator-spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-spark/commit/84595ea3
Tree: http://git-wip-us.apache.org/repos/asf/incubator-spark/tree/84595ea3
Diff: http://git-wip-us.apache.org/repos/asf/incubator-spark/diff/84595ea3
Branch: refs/heads/master
Commit: 84595ea3e25d2f9578b3de34704da14eb02330fa
Parents: 0675ca5 57fcfc7
Author: Reynold Xin <rx...@apache.org>
Authored: Wed Jan 15 20:15:29 2014 -0800
Committer: Reynold Xin <rx...@apache.org>
Committed: Wed Jan 15 20:15:29 2014 -0800
----------------------------------------------------------------------
.../spark/mllib/api/python/PythonMLLibAPI.scala | 4 +---
.../apache/spark/mllib/classification/SVM.scala | 2 --
.../spark/mllib/clustering/KMeansModel.scala | 4 +---
.../spark/mllib/regression/LinearRegression.scala | 2 +-
.../spark/mllib/regression/RidgeRegression.scala | 6 +++---
.../spark/mllib/util/LinearDataGenerator.scala | 4 +---
.../apache/spark/mllib/util/MFDataGenerator.scala | 17 ++++++++---------
.../org/apache/spark/mllib/util/MLUtils.scala | 2 +-
.../apache/spark/mllib/util/SVMDataGenerator.scala | 2 +-
.../classification/LogisticRegressionSuite.scala | 6 +++---
.../spark/mllib/classification/SVMSuite.scala | 9 ++++-----
.../spark/mllib/clustering/KMeansSuite.scala | 3 ---
.../spark/mllib/recommendation/ALSSuite.scala | 1 -
.../apache/spark/mllib/regression/LassoSuite.scala | 6 ++----
.../mllib/regression/LinearRegressionSuite.scala | 5 ++---
.../mllib/regression/RidgeRegressionSuite.scala | 3 ---
16 files changed, 28 insertions(+), 48 deletions(-)
----------------------------------------------------------------------