Skip to content

Commit 698b6f6

Browse files
author
Nick Pentreath
committed
[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 ccd298e) Signed-off-by: Nick Pentreath <[email protected]>
1 parent 1153a40 commit 698b6f6

File tree

1 file changed

+2
-6
lines changed
  • mllib/src/main/scala/org/apache/spark/ml/recommendation

1 file changed

+2
-6
lines changed

mllib/src/main/scala/org/apache/spark/ml/recommendation/ALS.scala

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -430,15 +430,11 @@ class ALS(@Since("1.4.0") override val uid: String) extends Estimator[ALSModel]
430430

431431
/** @group expertSetParam */
432432
@Since("2.0.0")
433-
def setIntermediateStorageLevel(value: String): this.type = {
434-
set(intermediateStorageLevel, value)
435-
}
433+
def setIntermediateStorageLevel(value: String): this.type = set(intermediateStorageLevel, value)
436434

437435
/** @group expertSetParam */
438436
@Since("2.0.0")
439-
def setFinalStorageLevel(value: String): this.type = {
440-
set(finalStorageLevel, value)
441-
}
437+
def setFinalStorageLevel(value: String): this.type = set(finalStorageLevel, value)
442438

443439
/**
444440
* Sets both numUserBlocks and numItemBlocks to the specific value.

0 commit comments

Comments
 (0)