Package org.apache.spark.mllib.pmml
Interface PMMLExportable
- All Known Implementing Classes:
KMeansModel
,LassoModel
,LinearRegressionModel
,LogisticRegressionModel
,RidgeRegressionModel
,StreamingKMeansModel
,SVMModel
public interface PMMLExportable
Export model to the PMML format
Predictive Model Markup Language (PMML) is an XML-based file format
developed by the Data Mining Group (www.dmg.org).
-
Method Summary
Modifier and TypeMethodDescriptiontoPMML()
Export the model to a String in PMML formatvoid
toPMML
(OutputStream outputStream) Export the model to the OutputStream in PMML formatvoid
Export the model to a local file in PMML formatvoid
toPMML
(StreamResult streamResult) Export the model to the stream result in PMML formatvoid
toPMML
(SparkContext sc, String path) Export the model to a directory on a distributed file system in PMML format
-
Method Details
-
toPMML
Export the model to the stream result in PMML format- Parameters:
streamResult
- (undocumented)
-
toPMML
Export the model to a local file in PMML format- Parameters:
localPath
- (undocumented)
-
toPMML
Export the model to a directory on a distributed file system in PMML format- Parameters:
sc
- (undocumented)path
- (undocumented)
-
toPMML
Export the model to the OutputStream in PMML format- Parameters:
outputStream
- (undocumented)
-
toPMML
String toPMML()Export the model to a String in PMML format- Returns:
- (undocumented)
-