Github user BryanCutler commented on a diff in the pull request:
https://github.com/apache/spark/pull/7333#discussion_r34309975
--- Diff: mllib/src/main/scala/org/apache/spark/ml/recommendation/ALS.scala
---
@@ -88,23 +88,23 @@ private[recommendation] trait ALSParams extends
ALSModelParams with HasMaxIter w
def getRank: Int = $(rank)
/**
- * Param for number of user blocks (>= 1).
+ * Param for number of user blocks (>= 1, or -1 to auto-configure).
* Default: 10
* @group param
*/
val numUserBlocks = new IntParam(this, "numUserBlocks", "number of user
blocks",
- ParamValidators.gtEq(1))
+ ParamValidators.or(ParamValidators.gtEq(1), ParamValidators.eq(-1)))
--- End diff --
Using the proposed `ParamValidators.or` and `ParamValidators.eq` to allow
for a block size of >= 1 or -1 to auto-configure when training
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]