@@ -173,7 +173,7 @@ setMethod("spark.glm", signature(data = "SparkDataFrame", formula = "formula"),
173173# ' Fits a generalized linear model, similarly to R's glm().
174174# ' @param formula a symbolic description of the model to be fitted. Currently only a few formula
175175# ' operators are supported, including '~', '.', ':', '+', and '-'.
176- # ' @param data SparkDataFrame for training.
176+ # ' @param data a SparkDataFrame or R's glm data for training.
177177# ' @param family a description of the error distribution and link function to be used in the model.
178178# ' This can be a character string naming a family function, a family function or
179179# ' the result of a call to a family function. Refer R family at
@@ -508,10 +508,10 @@ setMethod("summary", signature(object = "IsotonicRegressionModel"),
508508# ' @param formula a symbolic description of the model to be fitted. Currently only a few formula
509509# ' operators are supported, including '~', '.', ':', '+', and '-'.
510510# ' Note that the response variable of formula is empty in spark.kmeans.
511- # ' @param ... additional argument(s) passed to the method.
512511# ' @param k number of centers.
513512# ' @param maxIter maximum iteration number.
514513# ' @param initMode the initialization algorithm choosen to fit the model.
514+ # ' @param ... additional argument(s) passed to the method.
515515# ' @return \code{spark.kmeans} returns a fitted k-means model.
516516# ' @rdname spark.kmeans
517517# ' @aliases spark.kmeans,SparkDataFrame,formula-method
@@ -628,8 +628,8 @@ setMethod("predict", signature(object = "KMeansModel"),
628628# ' @param data a \code{SparkDataFrame} of observations and labels for model fitting.
629629# ' @param formula a symbolic description of the model to be fitted. Currently only a few formula
630630# ' operators are supported, including '~', '.', ':', '+', and '-'.
631- # ' @param ... additional argument(s) passed to the method. Currently only \code{smoothing}.
632631# ' @param smoothing smoothing parameter.
632+ # ' @param ... additional argument(s) passed to the method. Currently only \code{smoothing}.
633633# ' @return \code{spark.naiveBayes} returns a fitted naive Bayes model.
634634# ' @rdname spark.naiveBayes
635635# ' @aliases spark.naiveBayes,SparkDataFrame,formula-method
@@ -657,7 +657,7 @@ setMethod("predict", signature(object = "KMeansModel"),
657657# ' }
658658# ' @note spark.naiveBayes since 2.0.0
659659setMethod ("spark.naiveBayes ", signature(data = "SparkDataFrame", formula = "formula"),
660- function (data , formula , smoothing = 1.0 ) {
660+ function (data , formula , smoothing = 1.0 , ... ) {
661661 formula <- paste(deparse(formula ), collapse = " " )
662662 jobj <- callJStatic(" org.apache.spark.ml.r.NaiveBayesWrapper" , " fit" ,
663663 formula , data @ sdf , smoothing )
0 commit comments