Packages

abstract class MLWriter extends BaseReadWrite with Logging

Abstract class for utility classes that can save ML instances in Spark's internal format.

Annotations
@Since("1.6.0")
Source
ReadWrite.scala
Linear Supertypes
Logging, BaseReadWrite, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MLWriter
  2. Logging
  3. BaseReadWrite
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new MLWriter()

Type Members

  1. implicit class LogStringContext extends AnyRef
    Definition Classes
    Logging

Concrete Value Members

  1. def option(key: String, value: String): MLWriter.this.type

    Adds an option to the underlying MLWriter.

    Adds an option to the underlying MLWriter. See the documentation for the specific model's writer for possible options. The option name (key) is case-insensitive.

    Annotations
    @Since("2.3.0")
  2. def overwrite(): MLWriter.this.type

    Overwrites if the output path already exists.

    Overwrites if the output path already exists.

    Annotations
    @Since("1.6.0")
  3. def save(path: String): Unit

    Saves the ML instances to the input path.

    Saves the ML instances to the input path.

    Annotations
    @Since("1.6.0") @throws("If the input path already exists but overwrite is not enabled.")
  4. def session(sparkSession: SparkSession): MLWriter.this.type

    Sets the Spark Session to use for saving/loading.

    Sets the Spark Session to use for saving/loading.

    Definition Classes
    MLWriter → BaseReadWrite
    Annotations
    @Since("1.6.0")