-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-9225] [MLlib] LDASuite needs unit tests for empty documents #7620
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
Both EMLDAOptimizer and OnlineLDAOptimizer are tested.
|
@rotationsymmetry Great work! We could also implement those two tests in one test suite with for-loop of the optimizers instead. Since both of them are almost same and there is a difference about the optimizers. @feynmanliang What do you think? |
|
LGTM pending tests, we'll need @jkbradley to trigger the Jenkins build. I would actually prefer that the two be in separate tests so it's easy to identify which optimizer is failing by just looking at which test is failing. I agree there is quite a bit of DRYing to do in |
|
@feynmanliang I got it. Thanks. |
|
@yu-iskw @feynmanliang Thanks for your review! @jkbradley Will you please trigger the Jenkins build? |
|
Jenkins, test this please. |
|
ok to test |
|
@mengxr Thank you for OK to test. I checked the Jerkins log. The failure is caused by git unable to fetch the repo. Anything on my end to fix it? From Jenkins log: |
|
test this please |
|
Test build #38676 has finished for PR 7620 at commit
|
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.
minor: test("EMLDAOptimizer with empty docs")
|
@mengxr Thanks a lot for your comments! It is very helpful. I have incorporated them in the commit. |
|
Test build #38793 has finished for PR 7620 at commit
|
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.
minor: it is not necessary to have extra blank lines in Spark code base
|
Test build #39003 has finished for PR 7620 at commit
|
|
LGTM. Merged into master. Thanks! |
Add unit tests for running LDA with empty documents.
Both EMLDAOptimizer and OnlineLDAOptimizer are tested.
@feynmanliang