Github user mengxr commented on a diff in the pull request:
https://github.com/apache/spark/pull/6019#discussion_r30299818
--- Diff: mllib/src/main/scala/org/apache/spark/ml/feature/Bucketizer.scala
---
@@ -54,7 +54,7 @@ final class Bucketizer private[ml] (override val parent:
Estimator[Bucketizer])
"bucket, which also includes y. The splits should be strictly
increasing. " +
"Values at -inf, inf must be explicitly provided to cover all Double
values; " +
"otherwise, values outside the splits specified will be treated as
errors.",
- Bucketizer.checkSplits)
+ Bucketizer.checkSplits _)
--- End diff --
Actually I don't know. Both Scala and Intellij complain if I don't put the
underscore to make it anonymous.
~~~
[error]
/Users/meng/src/spark/mllib/src/main/scala/org/apache/spark/ml/feature/Bucketizer.scala:57:
missing arguments for method checkSplits in object Bucketizer;
[error] follow this method with `_' if you want to treat it as a partially
applied function
[error] Bucketizer.checkSplits)
~~~
---
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]