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

    https://github.com/apache/spark/pull/6011#discussion_r29963404
  
    --- Diff: python/pyspark/mllib/evaluation.py ---
    @@ -141,6 +141,133 @@ def r2(self):
             return self.call("r2")
     
     
    +class MulticlassMetrics(JavaModelWrapper):
    +    """
    +    Evaluator for multiclass classification.
    +
    +    >>> predictionAndLabels = sc.parallelize([(0.0, 0.0), (0.0, 1.0), 
(0.0, 0.0),
    +    ...     (1.0, 0.0), (1.0, 1.0), (1.0, 1.0), (1.0, 1.0), (2.0, 2.0), 
(2.0, 0.0)])
    +    >>> metrics = MulticlassMetrics(predictionAndLabels)
    +    >>> metrics.falsePositiveRate(0.0)
    +    0.2
    --- End diff --
    
    It seems that there are some numerical errors in the python 2.6 test. So we 
can change it to `0.2...`


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