Packages

t

org.apache.spark.ml.util

DefaultParamsReadable

trait DefaultParamsReadable[T] extends MLReadable[T]

Helper trait for making simple Params types readable. If a Params class stores all data as org.apache.spark.ml.param.Param values, then extending this trait will provide a default implementation of reading saved instances of the class. This only handles simple org.apache.spark.ml.param.Param types; e.g., it will not handle org.apache.spark.sql.Dataset.

T

ML instance type

Source
ReadWrite.scala
See also

DefaultParamsWritable, the counterpart to this trait

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DefaultParamsReadable
  2. MLReadable
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. def load(path: String): T

    Reads an ML instance from the input path, a shortcut of read.load(path).

    Reads an ML instance from the input path, a shortcut of read.load(path).

    Definition Classes
    MLReadable
    Annotations
    @Since( "1.6.0" )
    Note

    Implementing classes should override this to be Java-friendly.

  2. def read: MLReader[T]

    Returns an MLReader instance for this class.

    Returns an MLReader instance for this class.

    Definition Classes
    DefaultParamsReadableMLReadable