Skip to content

diagnostics: SBCSの選択cacheとmodel統計を対応付ける - #45

Merged
PyYoshi merged 1 commit into
devfrom
v3/sbcs-selection-trace
Sep 21, 2026
Merged

PyYoshi merged 1 commit into
devfrom
v3/sbcs-selection-trace

Conversation

@PyYoshi

@PyYoshi PyYoshi commented Sep 21, 2026

Copy link
Copy Markdown
Owner

目的

cChardet #120の代表例分析で、SBCS内部の実際の選択とmodel統計を対応付ける。

変更

  • traceのsinglebyte_selectionにcached_best_index/active_count/selection_pathを出力
  • confidenceや名前getterの追加呼出しなし。engine/header/C APIは変更なし
  • detecting時の選択理由はunknownを維持(score照会と名前fallbackを区別できないため)
  • 日本語仕様と回帰testを追加

検証

固定static libraryに旧/新traceをlinkし、4小入力×5chunkで新field以外のsnapshot/raw reportが完全一致。選択indexとchild/model統計、最終raw reportの対応を検証。新規3tests成功。既存診断suiteも実行済み(任意tool未指定分はskip)。
P01、大入力、公開モデルの変更なし。根本原因の全説明が完成したとはしない。

@PyYoshi
PyYoshi marked this pull request as ready for review September 21, 2026 08:47
@PyYoshi
PyYoshi merged commit 086a6b6 into dev Sep 21, 2026
11 checks passed
@PyYoshi
PyYoshi deleted the v3/sbcs-selection-trace branch September 21, 2026 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant