DefaultParamsReadable

class pyspark.ml.util.DefaultParamsReadable

Helper trait for making simple Params types readable. If a Params class stores all data as Param values, then extending this trait will provide a default implementation of reading saved instances of the class. This only handles simple Param types; e.g., it will not handle pyspark.sql.DataFrame. See DefaultParamsWritable, the counterpart to this class.

Methods

load(path)

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

read()

Returns a DefaultParamsReader instance for this class.

Methods Documentation

classmethod load(path: str) → RL

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

classmethod read()pyspark.ml.util.DefaultParamsReader[RL]

Returns a DefaultParamsReader instance for this class.