-
Notifications
You must be signed in to change notification settings - Fork 28.3k
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-5598][MLLIB] model save/load for ALS #4422
Conversation
Test build #26907 has started for PR 4422 at commit
|
Test build #26907 has finished for PR 4422 at commit
|
Test PASSed. |
case (className, "1.0") if className == classNameV1_0 => | ||
SaveLoadV1_0.load(sc, path) | ||
case _ => | ||
throw new IOException("" + |
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.
Is this the preferred syntax? I've been wondering about this
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.
Here can't you just omit the "" +
? maybe it was just auto-inserted by the IDE on hitting return there.
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 assume it's to make the lines below line up
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.
Yes, that's was from IDE.
I just had a few small comments. One question which occurred to me: Does SQLContext have configuration info which would be relevant to saving/loading? I'm wondering if users should be able to pass in a SQLContext to save/load. |
This is the |
Test build #26959 has started for PR 4422 at commit
|
Test build #26964 has started for PR 4422 at commit
|
Having SaveLoadV1_0 be a Loader is weird since it loads metadata, and the metadata gives the version number. It works now since there is only 1 version, but it will have to stop being a Loader in the future. |
Other than the Loader issue, looks good. |
Test build #26964 has finished for PR 4422 at commit
|
Test FAILed. |
Test build #26959 has finished for PR 4422 at commit
|
Test PASSed. |
Test build #27007 has started for PR 4422 at commit
|
Test build #27007 has finished for PR 4422 at commit
|
Test FAILed. |
Test build #27011 has started for PR 4422 at commit
|
Test build #27011 has finished for PR 4422 at commit
|
Test PASSed. |
following #4233. jkbradley Author: Xiangrui Meng <meng@databricks.com> Closes #4422 from mengxr/SPARK-5598 and squashes the following commits: a059394 [Xiangrui Meng] SaveLoad not extending Loader 14b7ea6 [Xiangrui Meng] address comments f487cb2 [Xiangrui Meng] add unit tests 62fc43c [Xiangrui Meng] implement save/load for MFM (cherry picked from commit 5c299c5) Signed-off-by: Xiangrui Meng <meng@databricks.com>
Merged into master and branch-1.3. |
following #4233. @jkbradley