diff options
author | Nick Pentreath <nickp@za.ibm.com> | 2016-06-02 16:33:16 -0700 |
---|---|---|
committer | Nick Pentreath <nickp@za.ibm.com> | 2016-06-02 16:33:16 -0700 |
commit | ccd298eb6794cbcb220ac9889db60d745231e0fe (patch) | |
tree | 6aeb698ac11902506629714fd4d06d02d59ea193 /mllib/src | |
parent | 985d532812cf176d0e12b799c723f917282b6813 (diff) | |
download | spark-ccd298eb6794cbcb220ac9889db60d745231e0fe.tar.gz spark-ccd298eb6794cbcb220ac9889db60d745231e0fe.tar.bz2 spark-ccd298eb6794cbcb220ac9889db60d745231e0fe.zip |
[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 <nickp@za.ibm.com>
Closes #13480 from MLnick/als-param-minor-cleanup.
Diffstat (limited to 'mllib/src')
-rw-r--r-- | mllib/src/main/scala/org/apache/spark/ml/recommendation/ALS.scala | 8 |
1 files changed, 2 insertions, 6 deletions
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 8dc7437d47..2404a69e9e 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. |