Bugs in af.approx1()

未關閉
#135 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
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

貢獻指南

這個儲存庫沒有索引到貢獻指南

從這裡開始

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

arrayfire/arrayfire-python 的其他 Issue

查看 arrayfire/arrayfire-python 的全部 Issue

相似的 Issue

更多 Python Issue

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

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