Github user mengxr commented on a diff in the pull request:
https://github.com/apache/spark/pull/5740#discussion_r29273820
--- Diff: mllib/src/main/scala/org/apache/spark/ml/param/params.scala ---
@@ -65,38 +90,129 @@ class Param[T] (val parent: Params, val name: String,
val doc: String) extends S
}
}
+/**
+ * Factory methods for common validation functions for [[Param.isValid]].
+ * The numerical methods only support Int, Long, Float, and Double.
+ */
+object ParamValidate {
--- End diff --
We might need `sealed abstract class ParamValidate` to make it show up
correctly in Java. For the name, I recommend `ParamValidators` instead of
`ParamValidate`.
---
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]