Class GLMClassificationModel.SaveLoadV1_0$
Object
org.apache.spark.mllib.classification.impl.GLMClassificationModel.SaveLoadV1_0$
- Enclosing class:
- GLMClassificationModel
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassModel data for import/exportclass -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final GLMClassificationModel.SaveLoadV1_0$Static reference to the singleton instance of this Scala object. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.spark.mllib.classification.impl.GLMClassificationModel.SaveLoadV1_0.DataloadData(SparkContext sc, String path, String modelClass) Helper method for loading GLM classification model data.voidsave(SparkContext sc, String path, String modelClass, int numFeatures, int numClasses, Vector weights, double intercept, scala.Option<Object> threshold) Helper method for saving GLM classification 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
public void save(SparkContext sc, String path, String modelClass, int numFeatures, int numClasses, Vector weights, double intercept, scala.Option<Object> threshold) Helper method for saving GLM classification model metadata and data.- Parameters:
modelClass- String name for model class, to be saved with metadatanumClasses- Number of classes label can take, to be saved with metadatasc- (undocumented)path- (undocumented)numFeatures- (undocumented)weights- (undocumented)intercept- (undocumented)threshold- (undocumented)
-
loadData
public org.apache.spark.mllib.classification.impl.GLMClassificationModel.SaveLoadV1_0.Data loadData(SparkContext sc, String path, String modelClass) Helper method for loading GLM classification model data.NOTE: Callers of this method should check numClasses, numFeatures on their own.
- Parameters:
modelClass- String name for model class (used for error messages)sc- (undocumented)path- (undocumented)- Returns:
- (undocumented)
-