Skip to content

Conversation

@hhbyyh
Copy link
Contributor

@hhbyyh hhbyyh commented Jun 28, 2016

What changes were proposed in this pull request?

jira: https://issues.apache.org/jira/browse/SPARK-16249
Change visibility of Object ml.clustering.LDA to public for loading, thus users can invoke LDA.load("path").

How was this patch tested?

existing ut and manually test for load ( saved with current code)

@SparkQA
Copy link

SparkQA commented Jun 28, 2016

Test build #61366 has finished for PR 13941 at commit 43ce219.

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

/** Get dataset for spark.mllib LDA */
def getOldDataset(dataset: Dataset[_], featuresCol: String): RDD[(Long, OldVector)] = {
private[clustering] def getOldDataset(dataset: Dataset[_], featuresCol: String):
RDD[(Long, OldVector)] = {
Copy link
Contributor

Choose a reason for hiding this comment

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

Usually we use indent like this:

private[clustering] def getOldDataset(
      dataset: Dataset[_],
      featuresCol: String): RDD[(Long, OldVector)] = {

@hhbyyh
Copy link
Contributor Author

hhbyyh commented Jun 30, 2016

Thanks for the review @yanboliang. Updated accordingly.

@SparkQA
Copy link

SparkQA commented Jun 30, 2016

Test build #61516 has finished for PR 13941 at commit 11a077c.

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


private[clustering] object LDA extends DefaultParamsReadable[LDA] {
@Since("2.0.0")
object LDA extends DefaultParamsReadable[LDA] {
Copy link
Contributor

Choose a reason for hiding this comment

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

For discussion: Should we bump up the version at L899 to 2.0.0? @Since is used for public function and LDA.load become public since 2.0.0 actually. cc @mengxr @jkbradley @MLnick

Copy link
Contributor

Choose a reason for hiding this comment

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

yeah, seems we have generally had load be since the version that model loading was actually added for that model? e.g. I see that is the case for tree models etc

Copy link
Member

Choose a reason for hiding this comment

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

Yes, please, bump to 2.0.0

@yanboliang
Copy link
Contributor

LGTM except the last issue.

@hhbyyh
Copy link
Contributor Author

hhbyyh commented Jul 6, 2016

Thank you for the comments. Version updated.

@SparkQA
Copy link

SparkQA commented Jul 6, 2016

Test build #61822 has finished for PR 13941 at commit 6d3fec6.

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

@yanboliang
Copy link
Contributor

Merged into master and branch-2.0. Thanks!

asfgit pushed a commit that referenced this pull request Jul 6, 2016
…blic for loading

## What changes were proposed in this pull request?
jira: https://issues.apache.org/jira/browse/SPARK-16249
Change visibility of Object ml.clustering.LDA to public for loading, thus users can invoke LDA.load("path").

## How was this patch tested?

existing ut and manually test for load ( saved with current code)

Author: Yuhao Yang <yuhao.yang@intel.com>
Author: Yuhao Yang <hhbyyh@gmail.com>

Closes #13941 from hhbyyh/ldapublic.

(cherry picked from commit 5497242)
Signed-off-by: Yanbo Liang <ybliang8@gmail.com>
@asfgit asfgit closed this in 5497242 Jul 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants