Uh oh!
There was an error while loading. Please reload this page.
[SPARK-11940][PYSPARK][ML] Python API for ml.clustering.LDA - #10242
[SPARK-11940][PYSPARK][ML] Python API for ml.clustering.LDA#10242zjffdu wants to merge 4 commits into
Conversation
SparkQA
commented
Dec 10, 2015
Test build #47480 has finished for PR 10242 at commit
|
SparkQA
commented
Dec 10, 2015
Test build #47483 has finished for PR 10242 at commit
|
SparkQA
commented
Dec 11, 2015
Test build #47573 has finished for PR 10242 at commit
|
zjffdu
commented
Dec 14, 2015
@yanboliang Could you help review it ? |
There was a problem hiding this comment.
add \ at the end of each line, otherwise it can not generate API doc correctly.
typo: ssetParams -> setParams
zjffdu
commented
Dec 16, 2015
@yanboliang Push another commit to address the comments. BTW, for the unit test, I will get different result if I use python2.7, is it expected ? |
SparkQA
commented
Dec 16, 2015
Test build #47788 has finished for PR 10242 at commit
|
SparkQA
commented
Dec 16, 2015
Test build #47790 has finished for PR 10242 at commit
|
SparkQA
commented
Dec 16, 2015
Test build #47797 has finished for PR 10242 at commit
|
SparkQA
commented
Dec 16, 2015
Test build #47801 has finished for PR 10242 at commit
|
mengxr
commented
Feb 12, 2016
@zjffdu Sorry for slow response! @zjffdu Could you update since versions in this PR and address @yanboliang 's comment? Next version will be @yanboliang Could you make another pass after the update? Thanks! |
zjffdu
commented
Feb 25, 2016
Sorry for late response, I will update this PR in the next following days. |
SparkQA
commented
Feb 29, 2016
Test build #52180 has finished for PR 10242 at commit
|
There was a problem hiding this comment.
Here we usually make the next line start with ..., you can refer here.
SparkQA
commented
Mar 2, 2016
Test build #52277 has finished for PR 10242 at commit
|
There was a problem hiding this comment.
Should we also expose estimatedDocConcentration for LDAModel?
SparkQA
commented
Apr 20, 2016
Test build #56318 has finished for PR 10242 at commit
|
SparkQA
commented
Apr 20, 2016
Test build #56323 has finished for PR 10242 at commit
|
yanboliang
commented
Apr 20, 2016
| indent_p = re.compile(r'\n( +)') | ||
| def deco(f): | ||
| if not f.__doc__: |
There was a problem hiding this comment.
This is a good idea, but can you please do it in a separate PR? This is a broad change, so separating it out would be helpful (in case of conflicts, etc.).
jkbradley
commented
Apr 20, 2016
@zjffdu thanks for the updates! Btw, can you please add the "[ML]" tag to the PR title? |
jkbradley
commented
Apr 20, 2016
One more high-level request: Could you please add persistence to this? I'd like to start adding persistence to Python wrappers immediately since we now have full Python coverage. You should be able to extend MLReadable, MLWritable and add a simple test. |
| @since("2.0.0") | ||
| def vocabSize(self): | ||
| """Vocabulary size (number of terms or terms in the vocabulary)""" |
There was a problem hiding this comment.
"terms or terms" must be a mistake from a search-and-replace. I bet it's supposed to be "terms or words"
Could you fix that here and in the Scala doc too please?
jkbradley
commented
Apr 26, 2016
@zjffdu Do you mind if I take over this PR? I'd really like to get this API in for 2.0. You'll still be the primary author on the commit. |
zjffdu
commented
Apr 26, 2016
@jkbradley I made some update based your comments before, but don't have time to implement the model persistence feature. Please take over this PR. |
SparkQA
commented
Apr 26, 2016
Test build #57050 has finished for PR 10242 at commit
|
jkbradley
commented
Apr 26, 2016
OK thanks! I'll update it |
jkbradley
commented
Apr 27, 2016
Thanks, I did the rebase and updated it. It's in this new PR: [https://github.com//pull/12723] Could you please close this issue, and if you have time take a look at the new PR? Thanks! |
## What changes were proposed in this pull request? pyspark.ml API for LDA * LDA, LDAModel, LocalLDAModel, DistributedLDAModel * includes persistence This replaces [#10242] ## How was this patch tested? * doc test for LDA, including Param setters * unit test for persistence Author: Joseph K. Bradley <joseph@databricks.com> Author: Jeff Zhang <zjffdu@apache.org> Closes#12723 from jkbradley/zjffdu-SPARK-11940.
Besides this issue, also fix another in issue in python/pyspark/init.py (should provide more informative message when no doc is defined but since annotation is added.