zhengruifeng commented on a change in pull request #33049:
URL: https://github.com/apache/spark/pull/33049#discussion_r657642731
##########
File path: python/pyspark/ml/tests/test_algorithms.py
##########
@@ -83,7 +83,7 @@ def test_raw_and_probability_prediction(self):
result = model.transform(test).head()
expected_prediction = 2.0
expected_probability = [0.0, 0.0, 1.0]
- expected_rawPrediction = [-11.824, -8.298, 22.5299]
+ expected_rawPrediction = [-11.6081922998, -8.15827998691, 22.17757045]
self.assertTrue(result.prediction, expected_prediction)
self.assertTrue(np.allclose(result.probability, expected_probability,
atol=1E-4))
self.assertTrue(np.allclose(result.rawPrediction,
expected_rawPrediction, rtol=0.1))
Review comment:
3.2 is coming, let's revert it for now.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]