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

    https://github.com/apache/spark/pull/8214#discussion_r41445907
  
    --- Diff: python/pyspark/ml/regression.py ---
    @@ -142,6 +143,122 @@ def intercept(self):
             return self._call_java("intercept")
     
     
    +@inherit_doc
    +class IsotonicRegression(JavaEstimator, HasFeaturesCol, HasLabelCol, 
HasPredictionCol,
    +                         HasWeightCol):
    +    """
    +    Currently implemented using parallelized pool adjacent violators 
algorithm.
    +    Only univariate (single feature) algorithm supported.
    +
    +    >>> from pyspark.mllib.linalg import Vectors
    +    >>> df = sqlContext.createDataFrame([
    +    ...     (1.0, Vectors.dense(1.0)),
    +    ...     (0.0, Vectors.sparse(1, [], []))], ["label", "features"])
    +    >>> ir = IsotonicRegression()
    +    >>> ir.getIsotonic()
    --- End diff --
    
    I'd remove this.  It's confusing (and this is part of the documentation).


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