diff options
author | jbencook <jbenjamincook@gmail.com> | 2014-12-16 11:37:23 -0800 |
---|---|---|
committer | Xiangrui Meng <meng@databricks.com> | 2014-12-16 11:37:23 -0800 |
commit | cb484474934d664000df3d63a326bcd6b12f2f09 (patch) | |
tree | 4d8f3b76fd8e0216aa4f5df8d58f378ebddf3485 /ec2/spark_ec2.py | |
parent | ed362008f0a317729f8404e86e57d8a6ceb60f21 (diff) | |
download | spark-cb484474934d664000df3d63a326bcd6b12f2f09.tar.gz spark-cb484474934d664000df3d63a326bcd6b12f2f09.tar.bz2 spark-cb484474934d664000df3d63a326bcd6b12f2f09.zip |
[SPARK-4855][mllib] testing the Chi-squared hypothesis test
This PR tests the pyspark Chi-squared hypothesis test from this commit: c8abddc5164d8cf11cdede6ab3d5d1ea08028708 and moves some of the error messaging in to python.
It is a port of the Scala tests here: [HypothesisTestSuite.scala](https://github.com/apache/spark/blob/master/mllib/src/test/scala/org/apache/spark/mllib/stat/HypothesisTestSuite.scala)
Hopefully, SPARK-2980 can be closed.
Author: jbencook <jbenjamincook@gmail.com>
Closes #3679 from jbencook/master and squashes the following commits:
44078e0 [jbencook] checking that bad input throws the correct exceptions
f12ee10 [jbencook] removing checks for ValueError since input tests are on the Scala side
7536cf1 [jbencook] removing python checks for invalid input
a17ee84 [jbencook] [SPARK-2980][mllib] adding unit tests for the pyspark chi-squared test
3aeb0d9 [jbencook] [SPARK-2980][mllib] bringing Chi-squared error messages to the python side
Diffstat (limited to 'ec2/spark_ec2.py')
0 files changed, 0 insertions, 0 deletions