Document executed error norms in BackendHistory

オープン 初心者向け
#628 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

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

評価

難易度
1/5
見積もり時間
1時間未満
初心者へのやさしさ
86/100
issue の種類
ドキュメント
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
python

調査の方向性

リンク先のリビジョンで src/solprop/backends/protocol.py を読み、BackendHistory.error_norm と src/solprop/backends/driver.py の _march_to および _record を比較します。実行された試行のノルムを説明するよう属性のドキュメントを更新し、対応するコントローラーの履歴とは区別します。公開レコードのドキュメントがドライバーの契約と一致し、計算や既定値を変更せずにドキュメントチェックが通れば完了です。

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

説明

documentation priority: medium

What happens

BackendHistory.error_norm is documented as the error rescaled to the controller's unclipped proposal. The actual Runge–Kutta march records the executed trial norm. Only the controller's private accepted-norm history receives the equivalent proposal norm.

Why it matters

A backend implementing the session contract from the public record documentation could report different error histories at clipped or stretched landings even while making the correct numerical decisions.

Reproduction

Read, not a new numerical run: compare BackendHistory at ba7bee7a with _march_to and _record in the reference driver. _march_to computes equivalent, passes the original norm to _record, and appends equivalent to controller history. _record explicitly documents this executed-norm contract.

Context

Found during the independent Julia-owned session implementation in #611, tracking #608. Related session work is #607.

To do

  • Correct the BackendHistory.error_norm attribute documentation to describe the executed norm.
  • Keep the separate equivalent controller history explicit and preserve numerical behavior.

Done when

The public record documentation agrees with the existing driver's contract and documentation checks pass. No arithmetic or defaults change.

主要言語
Python
スター
3
フォーク
3
平均マージ
8時間 28分
マージ済み PR(30日)
176

環境構築

はじめの一歩

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

LupoLab/solprop のほかの issue

LupoLab/solprop の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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