abstract class MLReader[T] extends BaseReadWrite
Abstract class for utility classes that can load ML instances.
- T
ML instance type
- Annotations
- @Since("1.6.0")
- Source
- ReadWrite.scala
- Alphabetic
- By Inheritance
- MLReader
- BaseReadWrite
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new MLReader()
Abstract Value Members
- abstract def load(path: String): T
Loads the ML component from the input path.
Loads the ML component from the input path.
- Annotations
- @Since("1.6.0")
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def sc: SparkContext
Returns the underlying
SparkContext
.Returns the underlying
SparkContext
.- Attributes
- protected
- Definition Classes
- BaseReadWrite
- def session(sparkSession: SparkSession): MLReader.this.type
Sets the Spark Session to use for saving/loading.
Sets the Spark Session to use for saving/loading.
- Definition Classes
- MLReader → BaseReadWrite
- final def sparkSession: SparkSession
Returns the user-specified Spark Session or the default.
Returns the user-specified Spark Session or the default.
- Attributes
- protected
- Definition Classes
- BaseReadWrite
- final def sqlContext: SQLContext
Returns the user-specified SQL context or the default.
Returns the user-specified SQL context or the default.
- Attributes
- protected
- Definition Classes
- BaseReadWrite
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)