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

未關閉
#3,607 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 2 天內回覆

還沒有人認領這個 Issue。

  • #3668 來自 @patrocinio —— 已關閉,未合併

評估

難度
3/5
預估耗時
1-2 天
新手友好度
42/100
Issue 類型
文件
描述清晰度
基本清楚
活躍度
停滯
技術堆疊
numpy, python, pytorch
領域
documentation

研究方向

從 docs.pytorch.org/tutorials/beginner/examples_tensor/polynomial_numpy.html 中的多項式 NumPy 教學開始,並重現其中報告的與 sin(x) 的比較。檢查範例或其說明是否需要修正,並在該教學能夠為初學者提供對擬合結果準確且清楚的解釋時,將這項工作視為完成。

由索引模型根據 Issue 內容生成。

描述

core

Hi there,

I was looking at the tutorial on fitting a polynomial with NumPy and PyTorch:
https://docs.pytorch.org/tutorials/beginner/examples_tensor/polynomial_numpy.html

I noticed that the resulting third-degree polynomial is not a very good fit for the sin(x) function it's supposed to approximate:
f(x) = 0.0003655185795843861 + 0.8513230793867113 x + -6.305803723372667e-05 x² + -0.09255975933441395 x³

You can see a graph of both functions here—they look pretty different:
https://www.geogebra.org/calculator/qyykjrjf

My concern is that this might be a confusing example for beginners. It could give them the wrong impression of what a good result looks like when using PyTorch.

Cheers,
Carlos Rogério Camargo

Image

cc @albanD @jbschlosser

主要語言
Python
星號
9.5k
分支
4.5k
平均合併
1 天 20 小時
30 天內合併 PR
2

環境準備

在 Codespaces 中開啟

在瀏覽器裡用你自己的 GitHub 帳號啟動這個專案的開發容器。

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

pytorch/tutorials 的其他 Issue

查看 pytorch/tutorials 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。