Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix creation of pmml_text
  • Loading branch information
holdenk committed May 4, 2018
commit 9d7d684d3151d7904e5b868b1fc9b05aa43f8fea
3 changes: 2 additions & 1 deletion python/pyspark/ml/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -1367,7 +1367,8 @@ def test_linear_regression_pmml_basic(self):
path = tempfile.mkdtemp()
lr_path = path + "/lr-pmml"
model.write().format("pmml").save(lr_path)
pmml_text = self.sc.textFile(lr_path).collect()
pmml_text_list = self.sc.textFile(lr_path).collect()
pmml_text = "\n".join(pmml_text_list)
self.assertIn("Apache Spark", pmml_text)
self.assertIn("xs:element", pmml_text)

Expand Down