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
- Alphabetic
- By Inheritance
- DefaultParamsReadable
- MLReadable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
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.
-
def
read: MLReader[T]
Returns an
MLReader
instance for this class.Returns an
MLReader
instance for this class.- Definition Classes
- DefaultParamsReadable → MLReadable