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
- Alphabetic
- By Inheritance
- DefaultParamsWritable
- MLWritable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- 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("If the input path already exists but overwrite is not enabled.")
- def write: MLWriter
Returns an
MLWriter
instance for this ML instance.Returns an
MLWriter
instance for this ML instance.- Definition Classes
- DefaultParamsWritable → MLWritable