aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mllib/src/main/scala/org/apache/spark/ml/feature/Bucketizer.scala6
-rw-r--r--mllib/src/main/scala/org/apache/spark/ml/feature/QuantileDiscretizer.scala6
-rwxr-xr-xpython/pyspark/ml/feature.py4
3 files changed, 8 insertions, 8 deletions
diff --git a/mllib/src/main/scala/org/apache/spark/ml/feature/Bucketizer.scala b/mllib/src/main/scala/org/apache/spark/ml/feature/Bucketizer.scala
index eb4d42f255..d1f3b2af1e 100644
--- a/mllib/src/main/scala/org/apache/spark/ml/feature/Bucketizer.scala
+++ b/mllib/src/main/scala/org/apache/spark/ml/feature/Bucketizer.scala
@@ -78,9 +78,9 @@ final class Bucketizer @Since("1.4.0") (@Since("1.4.0") override val uid: String
def setOutputCol(value: String): this.type = set(outputCol, value)
/**
- * Param for how to handle invalid entries. Options are skip (filter out rows with
- * invalid values), error (throw an error), or keep (keep invalid values in a special additional
- * bucket).
+ * Param for how to handle invalid entries. Options are 'skip' (filter out rows with
+ * invalid values), 'error' (throw an error), or 'keep' (keep invalid values in a special
+ * additional bucket).
* Default: "error"
* @group param
*/
diff --git a/mllib/src/main/scala/org/apache/spark/ml/feature/QuantileDiscretizer.scala b/mllib/src/main/scala/org/apache/spark/ml/feature/QuantileDiscretizer.scala
index b4fcfa2da4..80c7f55e26 100644
--- a/mllib/src/main/scala/org/apache/spark/ml/feature/QuantileDiscretizer.scala
+++ b/mllib/src/main/scala/org/apache/spark/ml/feature/QuantileDiscretizer.scala
@@ -66,9 +66,9 @@ private[feature] trait QuantileDiscretizerBase extends Params
def getRelativeError: Double = getOrDefault(relativeError)
/**
- * Param for how to handle invalid entries. Options are skip (filter out rows with
- * invalid values), error (throw an error), or keep (keep invalid values in a special additional
- * bucket).
+ * Param for how to handle invalid entries. Options are 'skip' (filter out rows with
+ * invalid values), 'error' (throw an error), or 'keep' (keep invalid values in a special
+ * additional bucket).
* Default: "error"
* @group param
*/
diff --git a/python/pyspark/ml/feature.py b/python/pyspark/ml/feature.py
index 1d62b32534..62c31431b5 100755
--- a/python/pyspark/ml/feature.py
+++ b/python/pyspark/ml/feature.py
@@ -165,8 +165,8 @@ class Bucketizer(JavaTransformer, HasInputCol, HasOutputCol, JavaMLReadable, Jav
typeConverter=TypeConverters.toListFloat)
handleInvalid = Param(Params._dummy(), "handleInvalid", "how to handle invalid entries. " +
- "Options are skip (filter out rows with invalid values), " +
- "error (throw an error), or keep (keep invalid values in a special " +
+ "Options are 'skip' (filter out rows with invalid values), " +
+ "'error' (throw an error), or 'keep' (keep invalid values in a special " +
"additional bucket).",
typeConverter=TypeConverters.toString)