Uh oh!
There was an error while loading. Please reload this page.
[SPARK-14712][ML] LogisticRegressionModel.toString should summarize model - #18826
[SPARK-14712][ML] LogisticRegressionModel.toString should summarize model#18826jiayue-zhang wants to merge 3 commits into
Conversation
Hi @holdenk , I'm opening this PR to continue the effort in #12491 |
holdenk
commented
Sep 6, 2017
On the Python side using repr looks reasonable (although I would like to see a doctest for this). But we really should get @jkbradley or maybe @dbtsai to take a look on the ML side. Jenkins ok to test. Sorry for the delay on getting to this. |
SparkQA
commented
May 18, 2018
Test build #4183 has finished for PR 18826 at commit
|
SparkQA
commented
May 22, 2018
Test build #4187 has finished for PR 18826 at commit
|
jiayue-zhang
commented
Jun 1, 2018
This PR recently got tested so it draws my attention. Is this something we want to proceed? @holdenk@yanboliang@jkbradley@dbtsai I don't see how the test failures relate to LogisticRegression. Might it be some other flaky tests? Also tagging @HyukjinKwon who is active in maintaining stale PRs. |
HyukjinKwon
commented
Jun 1, 2018
@bravo-zhang, mind if I ask to rebase it and see if the tests pass? BTW, let's fix the PR title to link the JIRA. |
jiayue-zhang
commented
Jun 7, 2018
@HyukjinKwon It's ready to test. |
HyukjinKwon
commented
Jun 7, 2018
retest this please |
SparkQA
commented
Jun 7, 2018
Test build #91531 has finished for PR 18826 at commit
|
jiayue-zhang
commented
Jun 19, 2018
@HyukjinKwon Can you recommend someone to take a look at this PR or maybe you can take a look? |
HyukjinKwon
commented
Jun 21, 2018
ok to test |
HyukjinKwon
commented
Jun 21, 2018
I think you cc'ed right ones .. |
SparkQA
commented
Jun 21, 2018
Test build #92157 has finished for PR 18826 at commit
|
holdenk
left a comment
There was a problem hiding this comment.
Sorry for not noticing this earlier, looks really good - quick question on the Python side though. Would love to get this in :)
| java_blr_summary = self._call_java("evaluate", dataset) | ||
| return BinaryLogisticRegressionSummary(java_blr_summary) | ||
| def __repr__(self): |
There was a problem hiding this comment.
So my question here is why we aren't calling the Java/Scala toString method directly as we do in the mllib one and in many of the other models in regression.py for the ml one?
SparkQA
commented
Jun 23, 2018
Test build #92240 has finished for PR 18826 at commit
|
jiayue-zhang
commented
Jun 23, 2018
@holdenk@HyukjinKwon I updated |
holdenk
commented
Jun 28, 2018
LGTM merging to master. |
holdenk
commented
Jun 28, 2018
Thanks for the improvement :) |
What changes were proposed in this pull request?
SPARK-14712
spark.mllib LogisticRegressionModel overrides toString to print a little model info. We should do the same in spark.ml and override repr in pyspark.
How was this patch tested?
LogisticRegressionSuite.scala
Python doctest in pyspark.ml.classification.py