Class GLMRegressionModel.SaveLoadV1_0$
Object
org.apache.spark.mllib.regression.impl.GLMRegressionModel.SaveLoadV1_0$
- Enclosing class:
- GLMRegressionModel
-
Nested Class Summary
Modifier and TypeClassDescriptionclass
Model data for model import/exportclass
-
Field Summary
Modifier and TypeFieldDescriptionstatic final GLMRegressionModel.SaveLoadV1_0$
Static reference to the singleton instance of this Scala object. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.spark.mllib.regression.impl.GLMRegressionModel.SaveLoadV1_0.Data
loadData
(SparkContext sc, String path, String modelClass, int numFeatures) Helper method for loading GLM regression model data.void
save
(SparkContext sc, String path, String modelClass, Vector weights, double intercept) Helper method for saving GLM regression model metadata and data.
-
Field Details
-
MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Constructor Details
-
SaveLoadV1_0$
public SaveLoadV1_0$()
-
-
Method Details
-
thisFormatVersion
-
save
Helper method for saving GLM regression model metadata and data.- Parameters:
modelClass
- String name for model class, to be saved with metadatasc
- (undocumented)path
- (undocumented)weights
- (undocumented)intercept
- (undocumented)
-
loadData
public org.apache.spark.mllib.regression.impl.GLMRegressionModel.SaveLoadV1_0.Data loadData(SparkContext sc, String path, String modelClass, int numFeatures) Helper method for loading GLM regression model data.- Parameters:
modelClass
- String name for model class (used for error messages)numFeatures
- Number of features, to be checked against loaded data. The length of the weights vector should equal numFeatures.sc
- (undocumented)path
- (undocumented)- Returns:
- (undocumented)
-