@@ -403,17 +403,17 @@ setMethod("spark.naiveBayes", signature(data = "SparkDataFrame", formula = "form
403403# ' @param overwrite Overwrites or not if the output path already exists. Default is FALSE
404404# ' which means throw exception if the output path exists.
405405# '
406- # ' @rdname ml.save
407- # ' @name ml.save
406+ # ' @rdname write.ml
407+ # ' @name write.ml
408408# ' @export
409409# ' @examples
410410# ' \dontrun{
411411# ' df <- createDataFrame(sqlContext, infert)
412412# ' model <- spark.naiveBayes(education ~ ., df, laplace = 0)
413413# ' path <- "path/to/model"
414- # ' ml.save (model, path)
414+ # ' write.ml (model, path)
415415# ' }
416- setMethod ("ml.save ", signature(object = "NaiveBayesModel", path = "character"),
416+ setMethod ("write.ml ", signature(object = "NaiveBayesModel", path = "character"),
417417 function (object , path , overwrite = FALSE ) {
418418 writer <- callJMethod(object @ jobj , " write" )
419419 if (overwrite ) {
@@ -429,16 +429,16 @@ setMethod("ml.save", signature(object = "NaiveBayesModel", path = "character"),
429429# ' @param overwrite Overwrites or not if the output path already exists. Default is FALSE
430430# ' which means throw exception if the output path exists.
431431# '
432- # ' @rdname ml.save
433- # ' @name ml.save
432+ # ' @rdname write.ml
433+ # ' @name write.ml
434434# ' @export
435435# ' @examples
436436# ' \dontrun{
437437# ' model <- spark.survreg(trainingData, Surv(futime, fustat) ~ ecog_ps + rx)
438438# ' path <- "path/to/model"
439- # ' ml.save (model, path)
439+ # ' write.ml (model, path)
440440# ' }
441- setMethod ("ml.save ", signature(object = "AFTSurvivalRegressionModel", path = "character"),
441+ setMethod ("write.ml ", signature(object = "AFTSurvivalRegressionModel", path = "character"),
442442 function (object , path , overwrite = FALSE ) {
443443 writer <- callJMethod(object @ jobj , " write" )
444444 if (overwrite ) {
@@ -454,16 +454,16 @@ setMethod("ml.save", signature(object = "AFTSurvivalRegressionModel", path = "ch
454454# ' @param overwrite Overwrites or not if the output path already exists. Default is FALSE
455455# ' which means throw exception if the output path exists.
456456# '
457- # ' @rdname ml.save
458- # ' @name ml.save
457+ # ' @rdname write.ml
458+ # ' @name write.ml
459459# ' @export
460460# ' @examples
461461# ' \dontrun{
462462# ' model <- glm(y ~ x, trainingData)
463463# ' path <- "path/to/model"
464- # ' ml.save (model, path)
464+ # ' write.ml (model, path)
465465# ' }
466- setMethod ("ml.save ", signature(object = "GeneralizedLinearRegressionModel", path = "character"),
466+ setMethod ("write.ml ", signature(object = "GeneralizedLinearRegressionModel", path = "character"),
467467 function (object , path , overwrite = FALSE ) {
468468 writer <- callJMethod(object @ jobj , " write" )
469469 if (overwrite ) {
@@ -479,16 +479,16 @@ setMethod("ml.save", signature(object = "GeneralizedLinearRegressionModel", path
479479# ' @param overwrite Overwrites or not if the output path already exists. Default is FALSE
480480# ' which means throw exception if the output path exists.
481481# '
482- # ' @rdname ml.save
483- # ' @name ml.save
482+ # ' @rdname write.ml
483+ # ' @name write.ml
484484# ' @export
485485# ' @examples
486486# ' \dontrun{
487487# ' model <- spark.kmeans(x, k = 2, initializationMode="random")
488488# ' path <- "path/to/model"
489- # ' ml.save (model, path)
489+ # ' write.ml (model, path)
490490# ' }
491- setMethod ("ml.save ", signature(object = "KMeansModel", path = "character"),
491+ setMethod ("write.ml ", signature(object = "KMeansModel", path = "character"),
492492 function (object , path , overwrite = FALSE ) {
493493 writer <- callJMethod(object @ jobj , " write" )
494494 if (overwrite ) {
@@ -501,15 +501,15 @@ setMethod("ml.save", signature(object = "KMeansModel", path = "character"),
501501# '
502502# ' @param path Path of the model to read.
503503# ' @return a fitted MLlib model
504- # ' @rdname ml.load
505- # ' @name ml.load
504+ # ' @rdname read.ml
505+ # ' @name read.ml
506506# ' @export
507507# ' @examples
508508# ' \dontrun{
509509# ' path <- "path/to/model"
510- # ' model <- ml.load (path)
510+ # ' model <- read.ml (path)
511511# ' }
512- ml.load <- function (path ) {
512+ read.ml <- function (path ) {
513513 path <- suppressWarnings(normalizePath(path ))
514514 jobj <- callJStatic(" org.apache.spark.ml.r.RWrappers" , " load" , path )
515515 if (isInstanceOf(jobj , " org.apache.spark.ml.r.NaiveBayesWrapper" )) {
0 commit comments