Packages

t

org.apache.spark.ml.util

DefaultParamsWritable

trait DefaultParamsWritable extends MLWritable

Helper trait for making simple Params types writable. 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 writing 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.

Self Type
DefaultParamsWritable with Params
Source
ReadWrite.scala
See also

DefaultParamsReadable, the counterpart to this trait

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

Value Members

  1. def save(path: String): Unit

    Saves this ML instance to the input path, a shortcut of write.save(path).

    Saves this ML instance to the input path, a shortcut of write.save(path).

    Definition Classes
    MLWritable
    Annotations
    @Since( "1.6.0" ) @throws( ... )
  2. def write: MLWriter

    Returns an MLWriter instance for this ML instance.

    Returns an MLWriter instance for this ML instance.

    Definition Classes
    DefaultParamsWritableMLWritable