Skip to content

Bug fix for suwa-todo method#493

Merged
K-Suzuki-Jij merged 1 commit intomainfrom
hotfix/suwa-todo-method
Aug 1, 2025
Merged

Bug fix for suwa-todo method#493
K-Suzuki-Jij merged 1 commit intomainfrom
hotfix/suwa-todo-method

Conversation

@K-Suzuki-Jij
Copy link
Contributor

Change

諏訪藤堂法のアルゴリズムにバグがあったので直したました。
オーバーフローを避けるために確率を定数倍していたことを考慮できていなかったので直しました。

Copilot AI review requested due to automatic review settings August 1, 2025 11:58
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a bug in the Suwa-Todo algorithm implementation where overflow avoidance by scaling probabilities was not properly considered. The fix adjusts the probability calculation to account for the weight scaling factor.

  • Modifies random number generation to scale by current state weight
  • Updates probability calculation to use actual weight values instead of hardcoded constants

@K-Suzuki-Jij K-Suzuki-Jij requested a review from j-i-k-o August 1, 2025 12:05
Copy link
Collaborator

@j-i-k-o j-i-k-o left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://www.kurims.kyoto-u.ac.jp/~kyodo/kokyuroku/contents/pdf/1848-09.pdf の文献の(10)式のことと解釈しました。

@K-Suzuki-Jij K-Suzuki-Jij merged commit 92e041f into main Aug 1, 2025
20 checks passed
@K-Suzuki-Jij K-Suzuki-Jij deleted the hotfix/suwa-todo-method branch August 1, 2025 22:36
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.

2 participants