-
Notifications
You must be signed in to change notification settings - Fork 28.4k
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-7949] [MLlib] [Doc] update document with some missing save/load #6498
Conversation
Test build #33735 has finished for PR 6498 at commit
|
@hhbyyh I don't see any problems. Just to confirm, have you run all of the updated examples? |
@jkbradley. Sure, I have verified the changes. |
@@ -63,6 +63,10 @@ val clusters = KMeans.train(parsedData, numClusters, numIterations) | |||
val WSSSE = clusters.computeCost(parsedData) | |||
println("Within Set Sum of Squared Errors = " + WSSSE) | |||
{% endhighlight %} | |||
|
|||
// Save and load model |
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.
Oops! I missed this before. This should go before the endhighlight.
Also, you now need to import KMeansModel
I missed these items on my first pass---and I remember making the same mistakes when I first wrote save/load examples! |
@jkbradley This is awkward... Thanks a lot for the careful review. |
Test build #33846 has finished for PR 6498 at commit
|
No problem (and thanks for catching that other typo I missed). Merging into master and branch-1.4 |
add save load for examples: KMeansModel PowerIterationClusteringModel Word2VecModel IsotonicRegressionModel Author: Yuhao Yang <[email protected]> Closes #6498 from hhbyyh/docSaveLoad and squashes the following commits: 7f9f06d [Yuhao Yang] add missing imports c604cad [Yuhao Yang] Merge remote-tracking branch 'upstream/master' into docSaveLoad 1dd77cc [Yuhao Yang] update document with some missing save/load (cherry picked from commit 0674700) Signed-off-by: Joseph K. Bradley <[email protected]>
add save load for examples: KMeansModel PowerIterationClusteringModel Word2VecModel IsotonicRegressionModel Author: Yuhao Yang <[email protected]> Closes apache#6498 from hhbyyh/docSaveLoad and squashes the following commits: 7f9f06d [Yuhao Yang] add missing imports c604cad [Yuhao Yang] Merge remote-tracking branch 'upstream/master' into docSaveLoad 1dd77cc [Yuhao Yang] update document with some missing save/load
add save load for examples: KMeansModel PowerIterationClusteringModel Word2VecModel IsotonicRegressionModel Author: Yuhao Yang <[email protected]> Closes apache#6498 from hhbyyh/docSaveLoad and squashes the following commits: 7f9f06d [Yuhao Yang] add missing imports c604cad [Yuhao Yang] Merge remote-tracking branch 'upstream/master' into docSaveLoad 1dd77cc [Yuhao Yang] update document with some missing save/load
add save load for examples:
KMeansModel
PowerIterationClusteringModel
Word2VecModel
IsotonicRegressionModel