We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1318058 commit 355ffd0Copy full SHA for 355ffd0
regression/main.py
@@ -25,7 +25,7 @@ def poly_desc(W, b):
25
"""Creates a string description of a polynomial."""
26
result = 'y = '
27
for i, w in enumerate(W):
28
- result += '{:+.2f} x^{} '.format(w, len(W) - i)
+ result += '{:+.2f} x^{} '.format(w, i + 1)
29
result += '{:+.2f}'.format(b[0])
30
return result
31
0 commit comments