public static final class TrainValidationSplitModel.TrainValidationSplitModelWriter extends MLWriter
TrainValidationSplitModel supports an option "persistSubModels", with possible values "true" or "false". If you set the collectSubModels Param before fitting, then you can set "persistSubModels" to "true" in order to persist the subModels. By default, "persistSubModels" will be "true" when subModels are available and "false" otherwise. If subModels are not available, then setting "persistSubModels" to "true" will cause an exception.
Modifier and Type | Method and Description |
---|---|
scala.Option<SparkSession> |
optionSparkSession() |
SparkContext |
sc()
Returns the underlying `SparkContext`.
|
SparkSession |
sparkSession()
Returns the user-specified Spark Session or the default.
|
SQLContext |
sqlContext()
Returns the user-specified SQL context or the default.
|
context, option, overwrite, save, session
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initializeLogging, initializeLogIfNecessary, initializeLogIfNecessary, isTraceEnabled, log_, log, logDebug, logDebug, logError, logError, logInfo, logInfo, logName, logTrace, logTrace, logWarning, logWarning
public scala.Option<SparkSession> optionSparkSession()
public SparkSession sparkSession()
public SQLContext sqlContext()
public SparkContext sc()