Save the model to some persistent storage.
Save the model to some persistent storage.
This method should return true if the model has been saved successfully so that PredictionIO knows that it can be restored later during deployment. This method should return false if the model cannot be saved (or should not be saved due to configuration) so that PredictionIO will re-train the model during deployment. All arguments of this method are provided by automatically by PredictionIO.
ID of the run that trained this model.
Algorithm parameters that were used to train this model.
An Apache Spark context.
This trait is a convenience helper for persisting your model to the local filesystem. This trait and LocalFileSystemPersistentModelLoader contain concrete implementation and need not be implemented.
The underlying implementation is Utils.save.
Algorithm parameters class.
LocalFileSystemPersistentModelLoader