Github user hhbyyh commented on a diff in the pull request:
https://github.com/apache/spark/pull/6584#discussion_r31587584
--- Diff: docs/mllib-linear-methods.md ---
@@ -282,8 +277,8 @@ public class SVMClassifier {
System.out.println("Area under ROC = " + auROC);
// Save and load model
- model.save(sc.sc(), "myModelPath");
- SVMModel sameModel = SVMModel.load(sc.sc(), "myModelPath");
+ model.save(sc, "myModelPath");
--- End diff --
Hi xiangrui, the sc here seems to be an instance of SparkContext (refer to
line 251). And the original code has compile error.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]