You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (Jira)" <ji...@apache.org> on 2021/03/15 04:15:00 UTC
[jira] [Commented] (SPARK-34740) can class
pyspark.mllib.evaluation.RegressionMetrics() accept DataFrame as the
parameter?
[ https://issues.apache.org/jira/browse/SPARK-34740?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17301371#comment-17301371 ]
Hyukjin Kwon commented on SPARK-34740:
--------------------------------------
pyspark.mllib is for RDD only. You should implement this in pyspark.ml
> 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
> Priority: Minor
>
> 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