Github user mengxr commented on a diff in the pull request:
https://github.com/apache/spark/pull/5930#discussion_r29736652
--- Diff: mllib/src/main/scala/org/apache/spark/ml/param/params.scala ---
@@ -218,6 +219,22 @@ class BooleanParam(parent: Params, name: String, doc:
String) // No need for isV
override def w(value: Boolean): ParamPair[Boolean] = super.w(value)
}
+/** Specialized version of [[Param[Array[T]]]] for Java. */
+class ArrayParam[T : ClassTag](
--- End diff --
Having `ClassTag` is not Java friendly. `Array[T]` will be translated into
`Object` in Java to handle both primitive arrays and object arrays. How about
adding `StringArrayParam` instead of `ArrayParam[T]` in this PR?
---
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]