Github user yinxusen commented on the pull request:

    https://github.com/apache/spark/pull/10085#issuecomment-162761248
  
    @holdenk For your questions, I first tried to modify the interface of 
`Bucketizer`, making it to a `JavaModel` other than a `JavaTransfomer`. But I 
finally decided not to touch the `Bucketizer`, and added a inner class of 
[`QuantileDiscretizerModel`](https://github.com/yinxusen/spark/blob/3a33327122ae94d59403d807255273180528d9a9/python/pyspark/ml/feature.py#L2149)
 to get the splits.
    
    But I recommend to test the `getSplits` of `Bucketizer` that generating 
from the `QuantileDiscretizer`, since I got a serialization error, and I added 
a 
[`getJavaSplits`](https://github.com/yinxusen/spark/blob/3a33327122ae94d59403d807255273180528d9a9/mllib/src/main/scala/org/apache/spark/ml/feature/Bucketizer.scala#L64)
 to avoide it. JIRA issue 
[here](https://issues.apache.org/jira/browse/SPARK-7379).


---
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]

Reply via email to