Skip to content

[SPARK-14926] [ML] OneVsRest labelMetadata uses incorrect name - #13762

Closed
josh-howes wants to merge 1 commit into
apache:masterfrom
josh-howes:Bugfix/SPARK-14926-One_vs_Rest-labelMetadata
Closed

[SPARK-14926] [ML] OneVsRest labelMetadata uses incorrect name#13762
josh-howes wants to merge 1 commit into
apache:masterfrom
josh-howes:Bugfix/SPARK-14926-One_vs_Rest-labelMetadata

Conversation

@josh-howes

Copy link
Copy Markdown
Contributor

This contribution is my original work and I license the work to the project under the project's open source license.

What changes were proposed in this pull request?

OneVsRestModel applies labelMetadata to the output column, but the metadata could contain the wrong name. The attribute name was modified to match predictionCol.

How was this patch tested?

Manual Tests

@mengxr

Copy link
Copy Markdown
Contributor

@josh-howes Did you try compiling the code? predictionCol is not a Metadata instance.

@jkbradley

Copy link
Copy Markdown
Member

Ping

@SparkQA

Copy link
Copy Markdown

Test build #3251 has finished for PR 13762 at commit 22a3a04.

  • This patch fails to build.
  • This patch does not merge cleanly.
  • This patch adds no public classes.

@josh-howes
josh-howesforce-pushed the Bugfix/SPARK-14926-One_vs_Rest-labelMetadata branch from bd510ec to b4badaeCompareSeptember 8, 2016 10:05
@josh-howes

Copy link
Copy Markdown
ContributorAuthor

@SparkQA build

@srowen

Copy link
Copy Markdown
Member

I think we should close this PR.

@josh-howes

Copy link
Copy Markdown
ContributorAuthor

I recently pushed a change to this but @SparkQA didn't kick off an automated build. Is that because I squashed my commits?

@srowen

Copy link
Copy Markdown
Member

Jenkins test this please

@SparkQA

Copy link
Copy Markdown

Test build #65256 has finished for PR 13762 at commit b4badae.

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

@jkbradleyjkbradley left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Also, could you please add a line to a unit test to verify that the predictionCol has the correct metadata? Thank you!

// output label and label metadata as prediction
val predictionMetadata = new MetadataBuilder()
.withMetadata(labelMetadata)
.putString("name", predictionCol.name)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This should go through the standard ML attribute constructors to modify labelMetadata:

val predictionMetadata = Attribute.fromMetadata(labelMetadata)
.withName($(predictionCol))
.toMetadata()

@SparkQA

Copy link
Copy Markdown

Test build #3299 has finished for PR 13762 at commit b4badae.

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

@HyukjinKwon

Copy link
Copy Markdown
Member

Hi @josh-howes is it still active? If so, please address the comments above. Otherwise, I would rather like to propose to close this.

@HyukjinKwonHyukjinKwon mentioned this pull request May 17, 2017
zifeif2 pushed a commit to zifeif2/spark that referenced this pull request Nov 22, 2025
## What changes were proposed in this pull request?
This PR proposes to close PRs ...
- inactive to the review comments more than a month
- WIP and inactive more than a month
- with Jenkins build failure but inactive more than a month
- suggested to be closed and no comment against that
- obviously looking inappropriate (e.g., Branch 0.5)
To make sure, I left a comment for each PR about a week ago and I could not have a response back from the author in these PRs below:
Closesapache#11129Closesapache#12085Closesapache#12162Closesapache#12419Closesapache#12420Closesapache#12491Closesapache#13762Closesapache#13837Closesapache#13851Closesapache#13881Closesapache#13891Closesapache#13959Closesapache#14091Closesapache#14481Closesapache#14547Closesapache#14557Closesapache#14686Closesapache#15594Closesapache#15652Closesapache#15850Closesapache#15914Closesapache#15918Closesapache#16285Closesapache#16389Closesapache#16652Closesapache#16743Closesapache#16893Closesapache#16975Closesapache#17001Closesapache#17088Closesapache#17119Closesapache#17272Closesapache#17971
Added:
Closesapache#17778Closesapache#17303Closesapache#17872
## How was this patch tested?
N/A
Author: hyukjinkwon <gurwls223@gmail.com>
Closesapache#18017 from HyukjinKwon/close-inactive-prs.
Sign up for freeto 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.

6 participants

@josh-howes@mengxr@jkbradley@SparkQA@srowen@HyukjinKwon