Github user jayantshekhar commented on a diff in the pull request:
https://github.com/apache/spark/pull/6785#discussion_r41457582
--- Diff:
mllib/src/main/scala/org/apache/spark/mllib/feature/ChiSqSelector.scala ---
@@ -102,6 +110,66 @@ class ChiSqSelectorModel @Since("1.3.0") (
s"Only sparse and dense vectors are supported but got
${other.getClass}.")
}
}
+
+ override def save(sc: SparkContext, path: String): Unit = {
+ ChiSqSelectorModel.SaveLoadV1_0.save(sc, this, path)
+ }
+
+ override protected def formatVersion: String = "1.0"
+}
+
+object ChiSqSelectorModel extends Loader[ChiSqSelectorModel] {
+ override def load(sc: SparkContext, path: String): ChiSqSelectorModel = {
--- End diff --
Done!
---
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]