Github user sethah commented on a diff in the pull request:

    https://github.com/apache/spark/pull/15817#discussion_r87617849
  
    --- Diff: python/pyspark/ml/feature.py ---
    @@ -1163,9 +1184,11 @@ class QuantileDiscretizer(JavaEstimator, 
HasInputCol, HasOutputCol, JavaMLReadab
     
         >>> df = spark.createDataFrame([(0.1,), (0.4,), (1.2,), (1.5,)], 
["values"])
         >>> qds = QuantileDiscretizer(numBuckets=2,
    -    ...     inputCol="values", outputCol="buckets", relativeError=0.01)
    +    ...     inputCol="values", outputCol="buckets", relativeError=0.01, 
handleInvalid="error")
         >>> qds.getRelativeError()
         0.01
    +    >>> qds.getHandleInvalid()
    --- End diff --
    
    We didn't add anything to the doctest of bucketizer. Actually, I think it 
would be nice in both places to set `handleInvalid='skip'` and then add an 
invalid value to the example data. That way we can show what we mean by invalid 
and prove that it works.


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to