Packages

c

org.apache.spark.ml.util

GeneralMLWriter

class GeneralMLWriter extends MLWriter with Logging

A ML Writer which delegates based on the requested format.

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

Instance Constructors

  1. new GeneralMLWriter(stage: PipelineStage)

Value Members

  1. def format(source: String): GeneralMLWriter.this.type

    Specifies the format of ML export (e.g.

    Specifies the format of ML export (e.g. "pmml", "internal", or the fully qualified class name for export).

    Annotations
    @Since( "2.4.0" )
  2. def option(key: String, value: String): GeneralMLWriter.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.

    Definition Classes
    MLWriter
    Annotations
    @Since( "2.3.0" )
  3. def overwrite(): GeneralMLWriter.this.type

    Overwrites if the output path already exists.

    Overwrites if the output path already exists.

    Definition Classes
    MLWriter
    Annotations
    @Since( "1.6.0" )
  4. def save(path: String): Unit

    Saves the ML instances to the input path.

    Saves the ML instances to the input path.

    Definition Classes
    MLWriter
    Annotations
    @Since( "1.6.0" ) @throws( ... )
  5. def session(sparkSession: SparkSession): GeneralMLWriter.this.type

    Sets the Spark Session to use for saving/loading.

    Sets the Spark Session to use for saving/loading.

    Definition Classes
    GeneralMLWriterMLWriter → BaseReadWrite