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

depth parameter is not used by DPWSolver #109

Closed
MathildeJeannin opened this issue May 2, 2024 · 1 comment
Closed

depth parameter is not used by DPWSolver #109

MathildeJeannin opened this issue May 2, 2024 · 1 comment

Comments

@MathildeJeannin
Copy link

Hi !

As the title says, the depth parameter is not used by DPWSolver.
I dug a bit and found out that the function estimate_value defined in domain_knowledge.jl line 65 will use the parameter max_depth set by default to 50 instead of depth that one should set when calling DPWSolver. It will only use depth if max_depth = -1.
According to dpw_types.jl, estimate_value is set by default to RolloutEstimator(RandomSolver(rng)). Calling DPWSolver(estimate_value = RolloutEstimator(RandomSolver(rng), max_depth=-1)) would do the trick but it is not obvious in the doc that depth is useless if max_depth is not set to -1.

My issue here is not really an issue but did I miss something ? Should it be easier to use my depth parameter ? Or should it be in the doc ?

Thanks !

@zsunberg
Copy link
Member

Wow! Thanks for catching this very subtle issue. I think the behavior is correct (See #88 for more context), but the documentation is wrong. I will update it.

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

2 participants