aboutsummaryrefslogtreecommitdiff
path: root/mllib
diff options
context:
space:
mode:
authorYuhao Yang <yuhao.yang@intel.com>2017-04-03 11:42:33 +0200
committerNick Pentreath <nickp@za.ibm.com>2017-04-03 11:42:33 +0200
commit4d28e8430d11323f08657ca8f3251ca787c45501 (patch)
tree6bc6a719c21f2a6c973419bfbf7776284df3a523 /mllib
parentfb5869f2cf94217b3e254e2d0820507dc83a25cc (diff)
downloadspark-4d28e8430d11323f08657ca8f3251ca787c45501.tar.gz
spark-4d28e8430d11323f08657ca8f3251ca787c45501.tar.bz2
spark-4d28e8430d11323f08657ca8f3251ca787c45501.zip
[SPARK-19969][ML] Imputer doc and example
## What changes were proposed in this pull request? Add docs and examples for spark.ml.feature.Imputer. Currently scala and Java examples are included. Python example will be added after https://github.com/apache/spark/pull/17316 ## How was this patch tested? local doc generation and example execution Author: Yuhao Yang <yuhao.yang@intel.com> Closes #17324 from hhbyyh/imputerdoc.
Diffstat (limited to 'mllib')
-rw-r--r--mllib/src/main/scala/org/apache/spark/ml/feature/Imputer.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/mllib/src/main/scala/org/apache/spark/ml/feature/Imputer.scala b/mllib/src/main/scala/org/apache/spark/ml/feature/Imputer.scala
index ec4c6ad75e..a41bd8e689 100644
--- a/mllib/src/main/scala/org/apache/spark/ml/feature/Imputer.scala
+++ b/mllib/src/main/scala/org/apache/spark/ml/feature/Imputer.scala
@@ -35,7 +35,7 @@ import org.apache.spark.sql.types._
private[feature] trait ImputerParams extends Params with HasInputCols {
/**
- * The imputation strategy.
+ * The imputation strategy. Currently only "mean" and "median" are supported.
* If "mean", then replace missing values using the mean value of the feature.
* If "median", then replace missing values using the approximate median value of the feature.
* Default: mean