Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

why self.Q = self.parent.V + self.r #5

Open
yyht opened this issue Nov 5, 2024 · 0 comments
Open

why self.Q = self.parent.V + self.r #5

yyht opened this issue Nov 5, 2024 · 0 comments

Comments

@yyht
Copy link

yyht commented Nov 5, 2024

in the mcts.py line 86, why the Q of node is initialzied via self.Q = self.parent.V + self.r

since Q(s,a)=E_{p(s', r|s,a)}[r(s,a)+weight * V(s')]
In LLM-setting, p(s',r|s,a) = 1 given s and a, Q(s,a)=r(s,a)+weight * V(s')
In this case, node.Q = reward + node.V ? which is used in the def _back_propagate in line 272

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

No branches or pull requests

1 participant