Github user felixcheung commented on a diff in the pull request:

    https://github.com/apache/spark/pull/14558#discussion_r74693142
  
    --- Diff: R/pkg/R/mllib.R ---
    @@ -298,14 +304,15 @@ setMethod("summary", signature(object = 
"NaiveBayesModel"),
     #' Users can call \code{summary} to print a summary of the fitted model, 
\code{predict} to make
     #' predictions on new data, and \code{write.ml}/\code{read.ml} to 
save/load fitted models.
     #'
    -#' @param data SparkDataFrame for training
    -#' @param formula A symbolic description of the model to be fitted. 
Currently only a few formula
    +#' @param data a SparkDataFrame for training.
    +#' @param formula a symbolic description of the model to be fitted. 
Currently only a few formula
     #'                operators are supported, including '~', '.', ':', '+', 
and '-'.
     #'                Note that the response variable of formula is empty in 
spark.kmeans.
    -#' @param k Number of centers
    -#' @param maxIter Maximum iteration number
    -#' @param initMode The initialization algorithm choosen to fit the model
    -#' @return \code{spark.kmeans} returns a fitted k-means model
    +#' @param ... additional argument(s) passed to the method.
    --- End diff --
    
    for all the `spark.something` functions, if we are not actually using `...` 
for optional parameters, lets remove it. There is no reason to have unused 
unnamed parameters for a function?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to