public static class GLMClassificationModel.SaveLoadV1_0$
extends Object
Modifier and Type | Class and Description |
---|---|
class |
GLMClassificationModel.SaveLoadV1_0$.Data
Model data for import/export
|
Modifier and Type | Field and Description |
---|---|
static GLMClassificationModel.SaveLoadV1_0$ |
MODULE$
Static reference to the singleton instance of this Scala object.
|
Constructor and Description |
---|
SaveLoadV1_0$() |
Modifier and Type | Method and Description |
---|---|
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.
|
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.
|
String |
thisFormatVersion() |
public static final GLMClassificationModel.SaveLoadV1_0$ MODULE$
public String thisFormatVersion()
public void save(SparkContext sc, String path, String modelClass, int numFeatures, int numClasses, Vector weights, double intercept, scala.Option<Object> threshold)
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)public org.apache.spark.mllib.classification.impl.GLMClassificationModel.SaveLoadV1_0.Data loadData(SparkContext sc, String path, String modelClass)
NOTE: Callers of this method should check numClasses, numFeatures on their own.
modelClass
- String name for model class (used for error messages)sc
- (undocumented)path
- (undocumented)