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

オープン
#3,607 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

まだ誰も着手していません。

  • #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) との比較結果を再現してください。例またはその説明に修正が必要か確認し、チュートリアルが初心者に対して fit の解釈を正確かつ明確に説明できるようになった時点で作業完了としてください。

索引モデルが 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時間
マージ済み PR(30日)
2

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

pytorch/tutorials のほかの issue

pytorch/tutorials の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。