Skip to content
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

[SPARK-31840][ML] Add instance weight support in LogisticRegressionSummary #28657

Closed
wants to merge 3 commits into from

Conversation

huaxingao
Copy link
Contributor

What changes were proposed in this pull request?

Add instance weight support in LogisticRegressionSummary

Why are the changes needed?

LogisticRegression, MulticlassClassificationEvaluator and BinaryClassificationEvaluator support instance weight. We should support instance weight in LogisticRegressionSummary too.

Does this PR introduce any user-facing change?

No

How was this patch tested?

Add new tests

@SparkQA
Copy link

SparkQA commented May 27, 2020

Test build #123196 has finished for PR 28657 at commit 8ac2f3e.

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

@SparkQA
Copy link

SparkQA commented May 27, 2020

Test build #123197 has finished for PR 28657 at commit b0f7bcc.

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

@SparkQA
Copy link

SparkQA commented May 27, 2020

Test build #123198 has finished for PR 28657 at commit df38f4e.

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

@huaxingao
Copy link
Contributor Author

cc @srowen @zhengruifeng


//[SPARK-31840] Add instance weight support in LogisticRegressionSummary
// weightCol in org.apache.spark.ml.classification.LogisticRegressionSummary is present only in current version
ProblemFilters.exclude[ReversedMissingMethodProblem]("org.apache.spark.ml.classification.LogisticRegressionSummary.weightCol")
Copy link
Member

Choose a reason for hiding this comment

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

Looks fine, that's a sealed trait anyway

@srowen
Copy link
Member

srowen commented May 31, 2020

Merged to master

@srowen srowen closed this in 45cf5e9 May 31, 2020
@huaxingao
Copy link
Contributor Author

@srowen Thanks Sean!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants