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 摘要。