bpo-44151: linear_regression() minor API improvements (GH-26199)

This commit is contained in:
Zack Kneupper 2021-05-24 20:30:58 -04:00 committed by GitHub
parent 8450e8a81f
commit 2f3a87856c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 26 additions and 26 deletions

View file

@ -2501,7 +2501,7 @@ class TestLinearRegression(unittest.TestCase):
([1, 2, 3], [21, 22, 23], 20, 1),
([1, 2, 3], [5.1, 5.2, 5.3], 5, 0.1),
]:
intercept, slope = statistics.linear_regression(x, y)
slope, intercept = statistics.linear_regression(x, y)
self.assertAlmostEqual(intercept, true_intercept)
self.assertAlmostEqual(slope, true_slope)