Skip to content

Commit f135dac

Browse files
committed
update save doc
1 parent 57e5200 commit f135dac

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

mllib/src/main/scala/org/apache/spark/mllib/util/modelSaveLoad.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ trait Saveable {
4848
*
4949
* @param sc Spark context used to save model data.
5050
* @param path Path specifying the directory in which to save this model.
51-
* This directory and any intermediate directory will be created if needed.
51+
* If the directory already exists, this method throws an exception.
5252
*/
5353
def save(sc: SparkContext, path: String): Unit
5454

python/pyspark/mllib/util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,8 @@ def save(self, sc, path):
185185
186186
:param sc: Spark context used to save model data.
187187
:param path: Path specifying the directory in which to save
188-
this model. This directory and any intermediate
189-
directory will be created if needed.
188+
this model. If the directory already exists,
189+
this method throws an exception.
190190
"""
191191
raise NotImplementedError
192192

0 commit comments

Comments
 (0)