Bugs in af.approx1()

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
30/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
python
領域
backend

調査の方向性

まず、リンクされた再現コードを実行し、af.INTERP.CUBIC と af.INTERP.CUBIC_SPLINE を指定した af.approx1 を調べます。観測された収束率と誤差フロアを SciPy の interp1d と比較します。補間の挙動を特定して修正し、期待される収束と精度を回復できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Convergence checks performed on the ArrayFire routines for interpolation seem to indicate a few mistakes:

The following plot is generated using af.INTERP.CUBIC
download 9

The order of convergence comes out to be image, while the expected convergence rate is image. I checked with af.INTERP.CUBIC_SPLINE as well. Even in that case the order of convergence comes out to be image

download 8

Another issue is the fact that the error doesn't drop below 1e-7. The SciPy interpolation function interp1d using cubic interpolation gives this:

download 19

For your reference - this is the code I'd used to generate the plots.

Also regarding issue #130 - I've realised that the mistake was on my part. I should have added the off-set in the indexing to the normalized interpolant points.

主要言語
Python
スター
422
フォーク
63
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

arrayfire/arrayfire-python のほかの issue

arrayfire/arrayfire-python の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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