Skip to content

Commit

Permalink
Removed print statements
Browse files Browse the repository at this point in the history
  • Loading branch information
noel-smith committed Aug 24, 2015
1 parent 6cd4ed1 commit 63b3835
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions python/pyspark/ml/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,8 +319,6 @@ def test_fit_minimize_metric(self):
bestModel = cvModel.bestModel
bestModelMetric = evaluator.evaluate(bestModel.transform(dataset))

print bestModel.getOrDefault('inducedError'), "Best model should have zero induced error"
print bestModelMetric, "Best model should fit exactly"
self.assertEqual(0.0, bestModel.getOrDefault('inducedError'), "Best model should have zero induced error")
self.assertEqual(0.0, bestModelMetric, "Best model has RMSE of 0")

Expand All @@ -344,8 +342,6 @@ def test_fit_maximize_metric(self):
bestModel = cvModel.bestModel
bestModelMetric = evaluator.evaluate(bestModel.transform(dataset))

print bestModel.getOrDefault('inducedError'), "Best model should have zero induced error"
print bestModelMetric, "Best model should fit exactly"
self.assertEqual(0.0, bestModel.getOrDefault('inducedError'), "Best model should have zero induced error")
self.assertEqual(1.0, bestModelMetric, "Best model has R-squared of 1")

Expand Down

0 comments on commit 63b3835

Please sign in to comment.