Skip to content

Conversation

@krishnakalyan3
Copy link
Member

What changes were proposed in this pull request?

Update programming guide, example and vignette with Bisecting k-means.

@krishnakalyan3 krishnakalyan3 changed the title [SPARK-19386][SPARKR][DOC] [SPARK-19386][SPARKR][DOC] Bisecting k-means in SparkR documentation Feb 1, 2017
@AmplabJenkins
Copy link

Can one of the admins verify this patch?


* Latent Dirichlet Allocation (LDA)

* Bisecting $k$-means
Copy link
Member

Choose a reason for hiding this comment

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

please sort this

Copy link
Member Author

Choose a reason for hiding this comment

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

@felixcheung could you please let me know whats wrong here?

Copy link
Member

Choose a reason for hiding this comment

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

these model names are in order

#### Clustering
 
 * Gaussian Mixture Model (GMM)
 
 * $k$-means Clustering
  
  * Latent Dirichlet Allocation (LDA)
  
 * Bisecting $k$-means

should be

#### Clustering
 
 * Bisecting $k$-means

 * Gaussian Mixture Model (GMM)
 
 * $k$-means Clustering
  
  * Latent Dirichlet Allocation (LDA)
  

perplexity
```

#### Bisecting k-means
Copy link
Member

Choose a reason for hiding this comment

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

ditto for this

Copy link
Member

Choose a reason for hiding this comment

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

same here. the model sections are in alphabetic order

@felixcheung
Copy link
Member

@wangmiao1981


<div data-lang="r" markdown="1">

Refer to the [R API docs](api/R/spark.bisectingKmeans.html) for more details. {% include_example r/ml/bisectingKmeans.R %}
Copy link
Member

Choose a reason for hiding this comment

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

you will need to add this file r/ml/bisectingKmeans.R

Copy link
Member

Choose a reason for hiding this comment

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

and this {% include_example r/ml/bisectingKmeans.R %} should be a separate line


Refer to the [R API docs](api/R/spark.bisectingKmeans.html) for more details. {% include_example r/ml/bisectingKmeans.R %}

{% include_example r/ml/lda.R %}
Copy link
Member

Choose a reason for hiding this comment

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

this is incorrect

Copy link
Contributor

Choose a reason for hiding this comment

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

why ???

Copy link
Contributor

@wangmiao1981 wangmiao1981 Feb 1, 2017

Choose a reason for hiding this comment

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

R function???s something wrong?

Copy link
Contributor

@wangmiao1981 wangmiao1981 Feb 1, 2017

Choose a reason for hiding this comment

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

I don't see the change here either. Is there something wrong with your editor? node???s

sparkR.session(appName = "SparkR-ML-bisectingKmeans-example")

# $example on$
irisDF <- suppressWarnings(createDataFrame(iris))
Copy link
Contributor

Choose a reason for hiding this comment

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

suppressWarnings should not appear in example.

fitted.model <- fitted(model, "centers")

# Model summary
showDF(fitted.model)
Copy link
Contributor

Choose a reason for hiding this comment

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

Model Summary should use summary method. Otherwise, change the comment.

@krishnakalyan3
Copy link
Member Author

@wangmiao1981 sorry, had made a erroneous commit. Could you please review the PR?.

@krishnakalyan3
Copy link
Member Author

ping @wangmiao1981 @felixcheung

@felixcheung
Copy link
Member

looking good to me. I'll wait for @wangmiao1981 to review.

@wangmiao1981
Copy link
Contributor

LGTM

@felixcheung
Copy link
Member

merged to master

@wangmiao1981
Copy link
Contributor

Jenkins build was not triggered for the last revision. It breaks the build.

@felixcheung
Copy link
Member

ouch, Jenkins was never run the entire time. I need to go double check why AppVeyor is passing.

@krishnakalyan3 krishnakalyan3 deleted the bisecting-kmeans branch February 5, 2017 08:46
cmonkey pushed a commit to cmonkey/spark that referenced this pull request Feb 15, 2017
## What changes were proposed in this pull request?
Update programming guide, example and vignette with Bisecting k-means.

Author: krishnakalyan3 <[email protected]>

Closes apache#16767 from krishnakalyan3/bisecting-kmeans.
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