-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-16144][SPARKR] update R API doc for mllib #13993
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -53,26 +53,27 @@ setClass("AFTSurvivalRegressionModel", representation(jobj = "jobj")) | |
| #' @note KMeansModel since 2.0.0 | ||
| setClass("KMeansModel", representation(jobj = "jobj")) | ||
|
|
||
| #' Saves the machine learning model to the input path | ||
| #' Saves the MLlib model to the input path | ||
| #' | ||
| #' Saves the machine learning model to the input path. For more information, see the specific | ||
| #' machine learning model below. | ||
| #' Saves the MLlib model to the input path. For more information, see the specific | ||
| #' MLlib model below. | ||
| #' @rdname write.ml | ||
| #' @name write.ml | ||
| #' @export | ||
| #' @seealso \link{spark.glm}, \link{spark.kmeans}, \link{spark.naiveBayes}, \link{spark.survreg} | ||
| #' @seealso \link{spark.glm}, \link{glm} | ||
| #' @seealso \link{spark.kmeans}, \link{spark.naiveBayes}, \link{spark.survreg} | ||
| #' @seealso \link{read.ml} | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's better to add |
||
| NULL | ||
|
|
||
| #' Predicted values based on a machine learning model | ||
| #' Makes predictions from a MLlib model | ||
| #' | ||
| #' Predicted values based on a machine learning model. For more information, see the specific | ||
| #' machine learning model below. | ||
| #' Makes predictions from a MLlib model. For more information, see the specific | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Makes -> Make?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Similarly, here, the "singular verb" with "s" is the convention. Please see eg. https://github.com/apache/spark/pull/13993/files#diff-7ede1519b4a56647801b51af33c2dd18R81
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good catch - agreed. |
||
| #' MLlib model below. | ||
| #' @rdname predict | ||
| #' @name predict | ||
| #' @export | ||
| #' @seealso \link{spark.glm}, \link{spark.kmeans}, \link{spark.naiveBayes}, \link{spark.survreg} | ||
| #' @seealso \link{read.ml} | ||
| #' @seealso \link{spark.glm}, \link{glm} | ||
| #' @seealso \link{spark.kmeans}, \link{spark.naiveBayes}, \link{spark.survreg} | ||
| NULL | ||
|
|
||
| #' Generalized Linear Models | ||
|
|
@@ -528,6 +529,7 @@ setMethod("write.ml", signature(object = "KMeansModel", path = "character"), | |
| #' @rdname read.ml | ||
| #' @name read.ml | ||
| #' @export | ||
| #' @seealso \link{write.ml} | ||
| #' @examples | ||
| #' \dontrun{ | ||
| #' path <- "path/to/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.
I would suggest shorter title like "Save Machine Learning 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.
I think the convention that has been suggested is that we have the page title being the same first sentence of the description?
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 sort of have some impression, but would this be too restrictive? @shivaram
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.
The
write.mlcan only be used for saving MLlib models, it can not save other machine learning model produced by native R functions. So I think the current description is accurate enough.