-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-14894][PySpark] Add result summary api to Gaussian Mixture #12675
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
Conversation
|
@wangmiao1981 @jkbradley Please help review this PR |
python/pyspark/ml/clustering.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PyDoc seems oddly formatted in terms of line breaks.
f3114ed to
11f0574
Compare
|
@jkbradley Can you please ok to test this |
|
@holdenk I fixed the pydoc style issue. Can you please help review this? |
python/pyspark/ml/clustering.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this also seems strangely formatted - did you mean trainingSummary is None. ?
|
So did a quick look and it seems like it might not be lining up with the Scala implementation (or I just haven't had enough coffee this morning). It might be worthwhile to doublecheck against the scaladoc and also run your tests locally if you haven't done that. |
11f0574 to
2e226ce
Compare
|
@holdenk I checked the ScalaDoc and removed the evaluate method. Thanks for pointing it out. Can you please help review |
|
@jkbradley @holdenk Can you please help review? |
|
@jkbradley This PR has been open >30days. Can you please help review? |
|
ok to test |
|
Test build #60707 has finished for PR 12675 at commit
|
2e226ce to
7d16a23
Compare
|
Test build #60739 has finished for PR 12675 at commit
|
|
Test build #60748 has finished for PR 12675 at commit
|
|
Test build #60820 has finished for PR 12675 at commit
|
|
Test build #60821 has finished for PR 12675 at commit
|
|
|
||
| def test_gaussian_mixture_summary(self): | ||
| from pyspark.mllib.linalg import Vectors | ||
| df = self.spark.read.format("libsvm").load("data/mllib/sample_kmeans_data.txt") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please let me know if its ok to load data from a file when all other test cases uses hard coded data values. I tried with a sparse vector and fit gave me an error for the data format.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think its ok to load a dataset which is already used for testing else where.
|
@MLnick It would be great if you can help review this. |
holdenk
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you still interested in this PR @GayathriMurali ? If you've got the time to look at some of my notes around the PyDocs that would be cool - but we can also try pinging @davies & @MLnick to see if they are available to review once those comments are looked at :)
| return self._call_java("gaussiansDF") | ||
|
|
||
| @property | ||
| @since("2.0.0") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we've shipped 2.0 we will need to update this to 2.1 (same with the versionAdded notes)
|
Hi @GayathriMurali, it seems inactive for the review comments for few months. Should this be better closed for now if you are not able to proceed this further? |
|
@GayathriMurali If you are not able to proceed, I can take over. Thanks! |
|
#15777 has resolved this issue. We should close this one. |
|
@HyukjinKwon @srowen This should be closed. Thanks! |
|
@wangmiao1981 Wow, thank you for your efforts to verify it! |
## What changes were proposed in this pull request? This PR proposes to close stale PRs. What I mean by "stale" here includes that there are some review comments by reviewers but the author looks inactive without any answer to them more than a month. I left some comments roughly a week ago to ping and the author looks still inactive in these PR below These below includes some PR suggested to be closed and a PR against another branch which seems obviously inappropriate. Given the comments in the last three PRs below, they are probably worth being taken over by anyone who is interested in it. Closes apache#7963 Closes apache#8374 Closes apache#11192 Closes apache#11374 Closes apache#11692 Closes apache#12243 Closes apache#12583 Closes apache#12620 Closes apache#12675 Closes apache#12697 Closes apache#12800 Closes apache#13715 Closes apache#14266 Closes apache#15053 Closes apache#15159 Closes apache#15209 Closes apache#15264 Closes apache#15267 Closes apache#15871 Closes apache#15861 Closes apache#16319 Closes apache#16324 Closes apache#16890 Closes apache#12398 Closes apache#12933 Closes apache#14517 ## How was this patch tested? N/A Author: hyukjinkwon <gurwls223@gmail.com> Closes apache#16937 from HyukjinKwon/stale-prs-close.
What changes were proposed in this pull request?
Add summary API to Gaussian Mixture
How was this patch tested?
Added unit test case to test summary information