Skip to content

Conversation

@patrocinio
Copy link
Contributor

Addresses feedback that the 3rd-degree polynomial fit for sin(x) over [-π, π] may be confusing for beginners. Added educational notes explaining that:

  • The example demonstrates gradient descent mechanics, not perfect fitting
  • 3rd-degree polynomials have mathematical limitations for this task
  • Higher-order terms (5th, 7th degree) are needed for better accuracy
  • The imperfect fit is expected and teaches model architecture selection

Fixes #3607

Description

Checklist

  • The issue that is being fixed is referred in the description (see above "Fixes #ISSUE_NUMBER")
  • Only one issue is addressed in this pull request
  • Labels from the issue that this PR is fixing are added to this pull request
  • No unnecessary issues are included into this pull request.

@pytorch-bot
Copy link

pytorch-bot bot commented Nov 27, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/tutorials/3668

Note: Links to docs will display an error until the docs builds have been completed.

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@meta-cla meta-cla bot added the cla signed label Nov 27, 2025
Addresses feedback that the 3rd-degree polynomial fit for sin(x) over [-π, π]
may be confusing for beginners. Added educational notes explaining that:
- The example demonstrates gradient descent mechanics, not perfect fitting
- 3rd-degree polynomials have mathematical limitations for this task
- Higher-order terms (5th, 7th degree) are needed for better accuracy
- The imperfect fit is expected and teaches model architecture selection
@patrocinio patrocinio force-pushed the 3607_Feedback_about_Warm-up branch from 9dde6aa to 7ae350a Compare December 3, 2025 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feedback about Warm-up: numpy - on the Polynomial (Mis)Fit Example in the Tensors Tutorial

1 participant