Github user GayathriMurali commented on a diff in the pull request:
https://github.com/apache/spark/pull/12675#discussion_r67954415
--- Diff: python/pyspark/ml/tests.py ---
@@ -1070,6 +1070,21 @@ def test_logistic_regression_summary(self):
sameSummary = model.evaluate(df)
self.assertAlmostEqual(sameSummary.areaUnderROC, s.areaUnderROC)
+ def test_gaussian_mixture_summary(self):
+ from pyspark.mllib.linalg import Vectors
+ df =
self.spark.read.format("libsvm").load("data/mllib/sample_kmeans_data.txt")
--- End diff --
Please let me know if its ok to load data from a file when all other test
cases uses hard coded data values. I tried with a sparse vector and fit gave me
an error for the data format.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]