Skip to content
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

[SPARK-10386] [MLlib] PrefixSpanModel supports save/load #10664

Closed
wants to merge 3 commits into from

Conversation

yanboliang
Copy link
Contributor

PrefixSpanModel supports save/load. It's similar with #9267.

cc @jkbradley

@yanboliang yanboliang changed the title [SPARK-10386] [MLlib] Model import/export for PrefixSpan [SPARK-10386] [MLlib] PrefixSpanModel supports save/load Jan 8, 2016
@SparkQA
Copy link

SparkQA commented Jan 8, 2016

Test build #49015 has finished for PR 10664 at commit 1dd7a92.

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

@jkbradley
Copy link
Member

I'd like to get this into 2.0. Could you please fix the merge conflicts? Thanks!

@SparkQA
Copy link

SparkQA commented Apr 7, 2016

Test build #55193 has finished for PR 10664 at commit 21f8be5.

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

@yanboliang
Copy link
Contributor Author

@jkbradley I have resolved conflicts, this is ready for review now. Thanks!

@jkbradley
Copy link
Member

Taking a look now

try {
model.save(sc, path)
val newModel = PrefixSpanModel.load(sc, path)
val actual = newModel.freqSequences.collect()
Copy link
Member

Choose a reason for hiding this comment

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

I'd compare with the original model, not an expected result, here.

@jkbradley
Copy link
Member

This looks good; I just had 1 comment

@SparkQA
Copy link

SparkQA commented Apr 13, 2016

Test build #55719 has finished for PR 10664 at commit 7a86926.

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

@jkbradley
Copy link
Member

LGTM
Merging with master
Thanks @yanboliang !

@asfgit asfgit closed this in b0adb9f Apr 13, 2016
* If the directory already exists, this method throws an exception.
*/
@Since("2.0.0")
override def save(sc: SparkContext, path: String): Unit = {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is sc used ?

Copy link
Member

Choose a reason for hiding this comment

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

Not here, but it's needed for other algorithms (with local representations).

@yanboliang yanboliang deleted the spark-10386 branch April 14, 2016 03:09
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.

4 participants