aboutsummaryrefslogtreecommitdiff
path: root/mllib/src
diff options
context:
space:
mode:
authorBago Amirbekian <bago@databricks.com>2017-03-28 19:19:16 -0700
committerJoseph K. Bradley <joseph@databricks.com>2017-03-28 19:19:16 -0700
commita5c87707eaec5cacdfb703eb396dfc264bc54cda (patch)
tree123bcc6b24d6d03553faec689b183e7d7b43a7b3 /mllib/src
parent7d432af8f3c47973550ea253dae0c23cd2961bde (diff)
downloadspark-a5c87707eaec5cacdfb703eb396dfc264bc54cda.tar.gz
spark-a5c87707eaec5cacdfb703eb396dfc264bc54cda.tar.bz2
spark-a5c87707eaec5cacdfb703eb396dfc264bc54cda.zip
[SPARK-20040][ML][PYTHON] pyspark wrapper for ChiSquareTest
## What changes were proposed in this pull request? A pyspark wrapper for spark.ml.stat.ChiSquareTest ## How was this patch tested? unit tests doctests Author: Bago Amirbekian <bago@databricks.com> Closes #17421 from MrBago/chiSquareTestWrapper.
Diffstat (limited to 'mllib/src')
-rw-r--r--mllib/src/main/scala/org/apache/spark/ml/stat/ChiSquareTest.scala6
1 files changed, 3 insertions, 3 deletions
diff --git a/mllib/src/main/scala/org/apache/spark/ml/stat/ChiSquareTest.scala b/mllib/src/main/scala/org/apache/spark/ml/stat/ChiSquareTest.scala
index 21eba9a498..5b38ca73e8 100644
--- a/mllib/src/main/scala/org/apache/spark/ml/stat/ChiSquareTest.scala
+++ b/mllib/src/main/scala/org/apache/spark/ml/stat/ChiSquareTest.scala
@@ -46,9 +46,9 @@ object ChiSquareTest {
statistics: Vector)
/**
- * Conduct Pearson's independence test for every feature against the label across the input RDD.
- * For each feature, the (feature, label) pairs are converted into a contingency matrix for which
- * the Chi-squared statistic is computed. All label and feature values must be categorical.
+ * Conduct Pearson's independence test for every feature against the label. For each feature, the
+ * (feature, label) pairs are converted into a contingency matrix for which the Chi-squared
+ * statistic is computed. All label and feature values must be categorical.
*
* The null hypothesis is that the occurrence of the outcomes is statistically independent.
*