# Saves the MLlib model to the input path

Saves the MLlib model to the input path. For more information, see the
specific MLlib model below.

## Usage

``` r
write.ml(object, path, ...)
```

## Arguments

  - object:
    
    a fitted ML model object.

  - path:
    
    the directory where the model is saved.

  - ...:
    
    additional argument(s) passed to the method.

## See also

[spark.als](https://spark.apache.org/docs/3.5.8/api/R/reference/spark.als.md),
[spark.bisectingKmeans](https://spark.apache.org/docs/3.5.8/api/R/reference/spark.bisectingKmeans.md),
[spark.decisionTree](https://spark.apache.org/docs/3.5.8/api/R/reference/spark.decisionTree.md),

[spark.gaussianMixture](https://spark.apache.org/docs/3.5.8/api/R/reference/spark.gaussianMixture.md),
[spark.gbt](https://spark.apache.org/docs/3.5.8/api/R/reference/spark.gbt.md),

[spark.glm](https://spark.apache.org/docs/3.5.8/api/R/reference/spark.glm.md),
[glm](https://spark.apache.org/docs/3.5.8/api/R/reference/glm.md),
[spark.isoreg](https://spark.apache.org/docs/3.5.8/api/R/reference/spark.isoreg.md),

[spark.kmeans](https://spark.apache.org/docs/3.5.8/api/R/reference/spark.kmeans.md),

[spark.lda](https://spark.apache.org/docs/3.5.8/api/R/reference/spark.lda.md),
[spark.logit](https://spark.apache.org/docs/3.5.8/api/R/reference/spark.logit.md),

[spark.mlp](https://spark.apache.org/docs/3.5.8/api/R/reference/spark.mlp.md),
[spark.naiveBayes](https://spark.apache.org/docs/3.5.8/api/R/reference/spark.naiveBayes.md),

[spark.randomForest](https://spark.apache.org/docs/3.5.8/api/R/reference/spark.randomForest.md),
[spark.survreg](https://spark.apache.org/docs/3.5.8/api/R/reference/spark.survreg.md),
[spark.svmLinear](https://spark.apache.org/docs/3.5.8/api/R/reference/spark.svmLinear.md),

[read.ml](https://spark.apache.org/docs/3.5.8/api/R/reference/read.ml.md)
