Uh oh!
There was an error while loading. Please reload this page.
[SPARK-35142][PYTHON][ML] Fix incorrect return type for rawPredictionUDF in OneVsRestModel - #32245
[SPARK-35142][PYTHON][ML] Fix incorrect return type for rawPredictionUDF in OneVsRestModel#32245harupy wants to merge 8 commits into
rawPredictionUDF in OneVsRestModel#32245Conversation
Uh oh!
There was an error while loading. Please reload this page.
| predArray.append(x) | ||
| return Vectors.dense(predArray) | ||
| rawPredictionUDF = udf(func) |
There was a problem hiding this comment.
Should I add a test here to ensure that the rawPrediction column is no longer string
spark/python/pyspark/ml/tests/test_algorithms.py
Lines 108 to 117 in 0494dc9
There was a problem hiding this comment.
Yeah, I think we should better add a test if possible.
There was a problem hiding this comment.
@HyukjinKwon
why only transformed_df.head() trigger this error ?
does it indicate bugs in pyspark-sql udf ?
There was a problem hiding this comment.
Seems like pred.show() triggers an exception too? what does it return in other methods?
HyukjinKwon
commented
Apr 20, 2021
ok to test |
HyukjinKwon
commented
Apr 20, 2021
add to whitelist |
HyukjinKwon
commented
Apr 20, 2021
cc @WeichenXu123 FYI |
SparkQA
commented
Apr 20, 2021
Test build #137665 has finished for PR 32245 at commit
|
SparkQA
commented
Apr 20, 2021
Kubernetes integration test starting |
SparkQA
commented
Apr 20, 2021
Kubernetes integration test status failure |
SparkQA
commented
Apr 20, 2021
Test build #137666 has finished for PR 32245 at commit
|
SparkQA
commented
Apr 20, 2021
Kubernetes integration test starting |
SparkQA
commented
Apr 20, 2021
Kubernetes integration test status failure |
WeichenXu123
commented
Apr 20, 2021
SparkQA
commented
Apr 20, 2021
Test build #137668 has finished for PR 32245 at commit
|
SparkQA
commented
Apr 20, 2021
Kubernetes integration test starting |
SparkQA
commented
Apr 20, 2021
Kubernetes integration test status failure |
Uh oh!
There was an error while loading. Please reload this page.
SparkQA
commented
Apr 21, 2021
Test build #137708 has finished for PR 32245 at commit
|
SparkQA
commented
Apr 21, 2021
Kubernetes integration test unable to build dist. exiting with code: 1 |
SparkQA
commented
Apr 21, 2021
Test build #137713 has finished for PR 32245 at commit
|
SparkQA
commented
Apr 21, 2021
Kubernetes integration test starting |
SparkQA
commented
Apr 21, 2021
Kubernetes integration test status failure |
WeichenXu123
commented
Apr 21, 2021
LGTM |
HyukjinKwon
commented
Apr 21, 2021
Looks good. @harupy, would you mind filling the PR description per the template? |
rawPredictionUDF in OneVsRestModelrawPredictionUDF in OneVsRestModelHyukjinKwon
commented
Apr 21, 2021
@viirya, are you preparing Spark 2.4 RC now? This is supposed to be in Spark 2.4 too but this isn't a regression so it doesn't block. It's just a good to have so if you're preparing, it should be fine to don't backport. |
viirya
commented
Apr 21, 2021
HyukjinKwon
commented
Apr 21, 2021
BTW, the tests passed at https://github.com/harupy/spark/actions/runs/769366516. GitHub Actions didn't work properly for linking that run for some reasons .. I will leave it to @WeichenXu123 then. |
…nUDF` in `OneVsRestModel` ### What changes were proposed in this pull request? Fixes incorrect return type for `rawPredictionUDF` in `OneVsRestModel`. ### Why are the changes needed? Bugfix ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Unit test. Closes#32245 from harupy/SPARK-35142. Authored-by: harupy <17039389+harupy@users.noreply.github.com> Signed-off-by: Weichen Xu <weichen.xu@databricks.com> (cherry picked from commit b6350f5) Signed-off-by: Weichen Xu <weichen.xu@databricks.com>
WeichenXu123
commented
Apr 21, 2021
Backport to branch-3.1 cause conflicts. |
harupy
commented
Apr 21, 2021
@WeichenXu123 Opened a PR: #32269 |
viirya
commented
Apr 21, 2021
I don't see backport to 2.4. Do you plan to backport it? @WeichenXu123@harupy? |
@viirya Got it. I'll open another PR for 2.4. Wait, does spark/python/pyspark/ml/classification.py Lines 1964 to 2009 in 1630d64 |
HyukjinKwon
commented
Apr 21, 2021
Okay, looks like we can skip Spark 2.4. |
viirya
commented
Apr 21, 2021
Thanks for confirming. @harupy@HyukjinKwon |
…ictionUDF` in `OneVsRestModel` ### What changes were proposed in this pull request? This PR backports #32245. Fixes incorrect return type for `rawPredictionUDF` in `OneVsRestModel`. ### Why are the changes needed? Bugfix ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Unit test. Closes#32275 from harupy/backport-35142-3.0. Authored-by: harupy <17039389+harupy@users.noreply.github.com> Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
…nUDF` in `OneVsRestModel` ### What changes were proposed in this pull request? Fixes incorrect return type for `rawPredictionUDF` in `OneVsRestModel`. ### Why are the changes needed? Bugfix ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Unit test. Closesapache#32245 from harupy/SPARK-35142. Authored-by: harupy <17039389+harupy@users.noreply.github.com> Signed-off-by: Weichen Xu <weichen.xu@databricks.com> (cherry picked from commit b6350f5) Signed-off-by: Weichen Xu <weichen.xu@databricks.com>
What changes were proposed in this pull request?
Fixes incorrect return type for
rawPredictionUDFinOneVsRestModel.Why are the changes needed?
Bugfix
Does this PR introduce any user-facing change?
No
How was this patch tested?
Unit test.