Skip to content

[SPARK-27007][PYTHON]add rawPrediction to OneVsRest in PySpark #23910

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 5 commits into from

Conversation

huaxingao
Copy link
Contributor

What changes were proposed in this pull request?

Add RawPrediction to OneVsRest in PySpark to make it consistent with scala implementation

How was this patch tested?

Add doctest

@SparkQA
Copy link

SparkQA commented Feb 27, 2019

Test build #102831 has finished for PR 23910 at commit 5f4c895.

  • This patch fails PySpark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Feb 27, 2019

Test build #102836 has finished for PR 23910 at commit 0f3a11e.

  • This patch fails PySpark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Feb 27, 2019

Test build #102838 has finished for PR 23910 at commit 458dd65.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

Copy link
Member

@srowen srowen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good, with one question

@@ -1980,6 +1980,29 @@ def withColumn(self, colName, col):
assert isinstance(col, Column), "col should be Column"
return DataFrame(self._jdf.withColumn(colName, col._jc), self.sql_ctx)

@ignore_unicode_prefix
def withColumns(self, colNames, cols):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like the Scala impl has this method, but it's not exposed. Instead of adding it here, can you just use two calls to withColumn above?

@SparkQA
Copy link

SparkQA commented Mar 1, 2019

Test build #102924 has finished for PR 23910 at commit f421ef4.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@srowen
Copy link
Member

srowen commented Mar 2, 2019

Merged to master

@srowen srowen closed this in be5d95a Mar 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants