We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e20c920 commit 2fe0667Copy full SHA for 2fe0667
1 file changed
examples/src/main/scala/org/apache/spark/examples/ml/PipelineExample.scala
@@ -62,10 +62,10 @@ object PipelineExample {
62
val model = pipeline.fit(training)
63
64
// Now we can optionally save the fitted pipeline to disk
65
- model.save("/tmp/spark-logistic-regression-model")
+ model.write.overwrite().save("/tmp/spark-logistic-regression-model")
66
67
// We can also save this unfit pipeline to disk
68
- pipeline.save("/tmp/unfit-lr-model")
+ pipeline.write.overwrite().save("/tmp/unfit-lr-model")
69
70
// And load it back in during production
71
val sameModel = PipelineModel.load("/tmp/spark-logistic-regression-model")
0 commit comments