Github user yanboliang commented on a diff in the pull request:
https://github.com/apache/spark/pull/13461#discussion_r65667198
--- Diff: mllib/src/main/scala/org/apache/spark/ml/util/ReadWrite.scala ---
@@ -187,9 +209,25 @@ trait MLReadable[T] {
def load(path: String): T = read.load(path)
}
-private[ml] trait DefaultParamsReadable[T] extends MLReadable[T] {
- override def read: MLReader[T] = new DefaultParamsReader
+/**
+ * :: Experimental ::
+ *
+ * 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]] or
[[org.apache.spark.ml.linalg.Vector]].
--- End diff --
Ditto
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]