| Constructor and Description |
|---|
MLWriter() |
| Modifier and Type | Method and Description |
|---|---|
MLWriter |
context(SQLContext sqlContext)
Sets the SQL context to use for saving/loading.
|
scala.Option<SQLContext> |
optionSQLContext() |
MLWriter |
overwrite()
Overwrites if the output path already exists.
|
void |
save(String path)
Saves the ML instances to the input path.
|
SparkContext |
sc()
Returns the
SparkContext underlying sqlContext |
SQLContext |
sqlContext()
Returns the user-specified SQL context or the default.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitializeIfNecessary, initializeLogging, isTraceEnabled, log_, log, logDebug, logDebug, logError, logError, logInfo, logInfo, logName, logTrace, logTrace, logWarning, logWarningpublic void save(String path)
path - (undocumented)public MLWriter overwrite()
public MLWriter context(SQLContext sqlContext)
sqlContext - (undocumented)public scala.Option<SQLContext> optionSQLContext()
public SQLContext sqlContext()
public SparkContext sc()
SparkContext underlying sqlContext