diff options
author | Mike Dusenberry <dusenberrymw@gmail.com> | 2015-05-30 16:50:59 -0700 |
---|---|---|
committer | Joseph K. Bradley <joseph@databricks.com> | 2015-05-30 16:50:59 -0700 |
commit | 1281a3518802bfa624618236e6b9b59bc0e78585 (patch) | |
tree | 05320211d13e11cb84001eb39d43c644768b3891 /docs/mllib-feature-extraction.md | |
parent | 1617363fbb9b22a2eb09e7bab98c8d05f9508761 (diff) | |
download | spark-1281a3518802bfa624618236e6b9b59bc0e78585.tar.gz spark-1281a3518802bfa624618236e6b9b59bc0e78585.tar.bz2 spark-1281a3518802bfa624618236e6b9b59bc0e78585.zip |
[SPARK-7920] [MLLIB] Make MLlib ChiSqSelector Serializable (& Fix Related Documentation Example).
The MLlib ChiSqSelector class is not serializable, and so the example in the ChiSqSelector documentation fails. Also, that example is missing the import of ChiSqSelector.
This PR makes ChiSqSelector extend Serializable in MLlib, and adds the ChiSqSelector import statement to the associated example in the documentation.
Author: Mike Dusenberry <dusenberrymw@gmail.com>
Closes #6462 from dusenberrymw/Make_ChiSqSelector_Serializable_and_Fix_Related_Docs_Example and squashes the following commits:
9cb2f94 [Mike Dusenberry] Make MLlib ChiSqSelector Serializable.
d9003bf [Mike Dusenberry] Add missing import in MLlib ChiSqSelector Docs Scala example.
Diffstat (limited to 'docs/mllib-feature-extraction.md')
-rw-r--r-- | docs/mllib-feature-extraction.md | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/docs/mllib-feature-extraction.md b/docs/mllib-feature-extraction.md index 764985d436..1f6ad8b13d 100644 --- a/docs/mllib-feature-extraction.md +++ b/docs/mllib-feature-extraction.md @@ -410,6 +410,7 @@ import org.apache.spark.SparkContext._ import org.apache.spark.mllib.linalg.Vectors import org.apache.spark.mllib.regression.LabeledPoint import org.apache.spark.mllib.util.MLUtils +import org.apache.spark.mllib.feature.ChiSqSelector // Load some data in libsvm format val data = MLUtils.loadLibSVMFile(sc, "data/mllib/sample_libsvm_data.txt") |