-
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-16107] [R] group glm methods in documentation #13820
Conversation
ok to test |
@shivaram @felixcheung I think this significantly improves the current doc. We can add more content to description later. Do you know how to remove the |
#' | ||
#' Fits a generalized linear model against a Spark DataFrame. | ||
#' Fit generalized linear model against a Spark DataFrame. Can print, make predictions on the |
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.
Fit
->Fits
Can print
->Users can print
Test build #60967 has finished for PR 13820 at commit
|
I think the |
#' | ||
#' Fits a generalized linear model, similarly to R's glm(). | ||
#' | ||
#' @title Generalized Linear Models (R-compliant) |
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.
As talked with this discussion #13394 (diff), should we follow first sentence as the convention to define the title in this case?
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.
Also title changes below? @mengxr
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 asked @junyangq to try changing #'
to #
and see whether it works. We still need a comment for the function but we don't want it to appear on the generated Rd doc.
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.
@junyangq Could you remove @title
? We might need an empty line after this line. See attached screenshot:
Test build #60974 has finished for PR 13820 at commit
|
I think the |
Test build #60980 has finished for PR 13820 at commit
|
#' Fits a generalized linear model, similarly to R's glm(). | ||
#' | ||
#' @title Generalized Linear Models (R-compliant) | ||
#' Fits a generalized linear model, similarly to R's glm(). |
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.
Remove the extra space between #'
and Fits
.
#' Get the summary of a generalized linear model | ||
#' | ||
#' Returns the summary of a model produced by glm() or spark.glm(), similarly to R's summary(). | ||
# Returns the summary of a model produced by glm() or spark.glm(), similarly to R's summary(). |
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 get this is intentional, but I'd suggest adding extra empty newline between #
& #'
line - it's very easy to newcomers to make mistakes copy/paste lines (and didn't realize it wouldn't output to the doc)
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.
+1
Test build #61007 has finished for PR 13820 at commit
|
## What changes were proposed in this pull request? This groups GLM methods (spark.glm, summary, print, predict and write.ml) in the documentation. The example code was updated. ## How was this patch tested? N/A (If this patch involves UI changes, please attach a screenshot; otherwise, remove this) ![screen shot 2016-06-21 at 2 31 37 pm](https://cloud.githubusercontent.com/assets/15318264/16247077/f6eafc04-37bc-11e6-89a8-7898ff3e4078.png) ![screen shot 2016-06-21 at 2 31 45 pm](https://cloud.githubusercontent.com/assets/15318264/16247078/f6eb1c16-37bc-11e6-940a-2b595b10617c.png) Author: Junyang Qian <[email protected]> Author: Junyang Qian <[email protected]> Closes #13820 from junyangq/SPARK-16107. (cherry picked from commit ea3a12b) Signed-off-by: Xiangrui Meng <[email protected]>
LGTM. Merged into master and branch-2.0. Thanks! @junyangq Please follow @felixcheung 's suggestion and insert an empty line between |
What changes were proposed in this pull request?
This groups GLM methods (spark.glm, summary, print, predict and write.ml) in the documentation. The example code was updated.
How was this patch tested?
N/A
(If this patch involves UI changes, please attach a screenshot; otherwise, remove this)