Repository: spark
Updated Branches:
  refs/heads/branch-2.0 1153a4098 -> 698b6f67c


[MINOR] clean up style for storage param setters in ALS

Clean up style for param setter methods in ALS to match standard style and the 
other setter in class (this is an artefact of one of my previous PRs that 
wasn't cleaned up).

## How was this patch tested?
Existing tests - no functionality change.

Author: Nick Pentreath <[email protected]>

Closes #13480 from MLnick/als-param-minor-cleanup.

(cherry picked from commit ccd298eb6794cbcb220ac9889db60d745231e0fe)
Signed-off-by: Nick Pentreath <[email protected]>


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

Branch: refs/heads/branch-2.0
Commit: 698b6f67c331cf7ea38b7214d2691e29661af60b
Parents: 1153a40
Author: Nick Pentreath <[email protected]>
Authored: Thu Jun 2 16:33:16 2016 -0700
Committer: Nick Pentreath <[email protected]>
Committed: Thu Jun 2 16:33:23 2016 -0700

----------------------------------------------------------------------
 .../main/scala/org/apache/spark/ml/recommendation/ALS.scala  | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/698b6f67/mllib/src/main/scala/org/apache/spark/ml/recommendation/ALS.scala
----------------------------------------------------------------------
diff --git a/mllib/src/main/scala/org/apache/spark/ml/recommendation/ALS.scala 
b/mllib/src/main/scala/org/apache/spark/ml/recommendation/ALS.scala
index 8dc7437..2404a69 100644
--- a/mllib/src/main/scala/org/apache/spark/ml/recommendation/ALS.scala
+++ b/mllib/src/main/scala/org/apache/spark/ml/recommendation/ALS.scala
@@ -430,15 +430,11 @@ class ALS(@Since("1.4.0") override val uid: String) 
extends Estimator[ALSModel]
 
   /** @group expertSetParam */
   @Since("2.0.0")
-  def setIntermediateStorageLevel(value: String): this.type = {
-    set(intermediateStorageLevel, value)
-  }
+  def setIntermediateStorageLevel(value: String): this.type = 
set(intermediateStorageLevel, value)
 
   /** @group expertSetParam */
   @Since("2.0.0")
-  def setFinalStorageLevel(value: String): this.type = {
-    set(finalStorageLevel, value)
-  }
+  def setFinalStorageLevel(value: String): this.type = set(finalStorageLevel, 
value)
 
   /**
    * Sets both numUserBlocks and numItemBlocks to the specific value.


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

Reply via email to