Skip to content

[SPARK-14434][ML]:User guide doc and examples for GaussianMixture in spark.ml#12788

Closed
wangmiao1981 wants to merge 12 commits into
apache:masterfrom
wangmiao1981:example
Closed

[SPARK-14434][ML]:User guide doc and examples for GaussianMixture in spark.ml#12788
wangmiao1981 wants to merge 12 commits into
apache:masterfrom
wangmiao1981:example

Conversation

@wangmiao1981

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

(Please fill in changes proposed in this fix)

Add guide doc and examples for GaussianMixture in Spark.ml in Java, Scala and Python.

How was this patch tested?

(Please explain how this patch was tested. E.g. unit tests, integration tests, manual tests)

Manual compile and test all examples

@SparkQA

SparkQA commented Apr 29, 2016

Copy link
Copy Markdown

Test build #57363 has finished for PR 12788 at commit 03ac9b4.

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

@wangmiao1981

Copy link
Copy Markdown
Contributor Author

Comment thread docs/ml-clustering.md Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

"The MLlib" -> "The spark.ml"

@sethah

sethah commented May 4, 2016

Copy link
Copy Markdown
Contributor

I made a pass. @zhengruifeng can you please take a look as well?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

outer println is unnecessary

@zhengruifeng

Copy link
Copy Markdown
Contributor

@sethah It seems that these examples follow ml.kmeans's examples.
I agreed that it's better to keep in line with mllib's, especially the output information.

@SparkQA

SparkQA commented May 6, 2016

Copy link
Copy Markdown

Test build #58009 has finished for PR 12788 at commit c844a6e.

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

@wangmiao1981

Copy link
Copy Markdown
Contributor Author

retest it please.

@SparkQA

SparkQA commented May 6, 2016

Copy link
Copy Markdown

Test build #58020 has finished for PR 12788 at commit 4b5152a.

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

@wangmiao1981

Copy link
Copy Markdown
Contributor Author

@sethah @zhengruifeng @yanboliang I made changes to address comments.

@wangmiao1981

Copy link
Copy Markdown
Contributor Author

retest this please

@SparkQA

SparkQA commented May 6, 2016

Copy link
Copy Markdown

Test build #58033 has finished for PR 12788 at commit 4b5152a.

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

typo: "Creates"

@SparkQA

SparkQA commented May 12, 2016

Copy link
Copy Markdown

Test build #58512 has finished for PR 12788 at commit aaea542.

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

@SparkQA

SparkQA commented May 12, 2016

Copy link
Copy Markdown

Test build #58514 has finished for PR 12788 at commit 8f6f78f.

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

@wangmiao1981

Copy link
Copy Markdown
Contributor Author

@yanboliang @MLnick @zhengruifeng @sethah simplified the example using kmeans data and addressed review comments.

@SparkQA

SparkQA commented May 12, 2016

Copy link
Copy Markdown

Test build #58522 has finished for PR 12788 at commit 7175a1d.

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

@SparkQA

SparkQA commented May 12, 2016

Copy link
Copy Markdown

Test build #58523 has finished for PR 12788 at commit 5259d4d.

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

Comment thread docs/ml-clustering.md Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Python API docs

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit, j -> 'i' to keep in line with scala example

@SparkQA

SparkQA commented May 13, 2016

Copy link
Copy Markdown

Test build #58546 has finished for PR 12788 at commit eb9469e.

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

@wangmiao1981

Copy link
Copy Markdown
Contributor Author

@MLnick

MLnick commented May 16, 2016

Copy link
Copy Markdown
Contributor

@wangmiao1981 could you resolve merge conflicts by rebasing to master?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

we do setSeed here in the Python example but not in the Scala/Java examples. We should make it consistent (perhaps remove the setSeed here)

@MLnick

MLnick commented May 16, 2016

Copy link
Copy Markdown
Contributor

A few other minor comments, otherwise LGTM

@SparkQA

SparkQA commented May 16, 2016

Copy link
Copy Markdown

Test build #58645 has finished for PR 12788 at commit f56344b.

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

@wangmiao1981

Copy link
Copy Markdown
Contributor Author

@MLnick I made changes accordingly. Thanks!

asfgit pushed a commit that referenced this pull request May 17, 2016
…spark.ml

## What changes were proposed in this pull request?

(Please fill in changes proposed in this fix)

Add guide doc and examples for GaussianMixture in Spark.ml in Java, Scala and Python.

## How was this patch tested?

(Please explain how this patch was tested. E.g. unit tests, integration tests, manual tests)

Manual compile and test all examples

Author: wm624@hotmail.com <wm624@hotmail.com>

Closes #12788 from wangmiao1981/example.

(cherry picked from commit 4134ff0)
Signed-off-by: Nick Pentreath <nickp@za.ibm.com>
@MLnick

MLnick commented May 17, 2016

Copy link
Copy Markdown
Contributor

Merged to master/branch-2.0. Thanks @sethah @zhengruifeng for the review!

@asfgit asfgit closed this in 4134ff0 May 17, 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