mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
bpo-44151: linear_regression() minor API improvements (GH-26199)
This commit is contained in:
parent
8450e8a81f
commit
2f3a87856c
3 changed files with 26 additions and 26 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue