You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "xifeng (Jira)" <ji...@apache.org> on 2021/03/15 03:20:00 UTC

[jira] [Created] (SPARK-34740) can class pyspark.mllib.evaluation.RegressionMetrics() accept DataFrame as the parameter?

xifeng created SPARK-34740:
------------------------------

             Summary: can class pyspark.mllib.evaluation.RegressionMetrics() accept DataFrame as the parameter?
                 Key: SPARK-34740
                 URL: https://issues.apache.org/jira/browse/SPARK-34740
             Project: Spark
          Issue Type: Improvement
          Components: MLlib
    Affects Versions: 2.4.6
            Reporter: xifeng


class pyspark.mllib.evaluation.RegressionMetrics(predictionAndObservations) can only accept  an RDD of (prediction, observation) pairs as the parameter.

Can it also accept the DataFrame as the parameter? Which would be much more convenient.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org