Commit 891f5bc
committed
Fix polynomial_autograd documentation to match implementation
The tutorial code uses exp(x) but the documentation incorrectly stated
it was learning sin(x). This fix updates the documentation to correctly
describe what the code does:
- Changed documentation from sin(x) from -π to π
- To exp(x) from -1 to 1
- Added explanation about Taylor expansion of exponential function
The code remains unchanged and continues to demonstrate fitting a
polynomial to the exponential function using PyTorch autograd.1 parent 4fa1fa8 commit 891f5bc
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
0 commit comments