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

Distinguish between StateNode creation and lookup #100

Merged
merged 9 commits into from
Feb 7, 2023

Conversation

BoZenKhaa
Copy link
Contributor

Addresses #63, which in at least one occurrence of the issue was caused by incorrectly dispatching to the StateNode constructor in MDP where states were integers.

@@ -183,13 +183,13 @@ function clear_tree!(p::MCTSPlanner{S,A}) where {S,A} p.tree = nothing end

Return the StateNode in the tree corresponding to s. If there is no such node, add it using the planner.
"""
function get_state_node(tree::MCTSTree, s, planner::MCTSPlanner)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This function does not seem to be used anywhere, I think it can be removed?

@codecov
Copy link

codecov bot commented Oct 11, 2022

Codecov Report

Base: 86.62% // Head: 86.69% // Increases project coverage by +0.06% 🎉

Coverage data is based on head (656c834) compared to base (dd3531b).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #100      +/-   ##
==========================================
+ Coverage   86.62%   86.69%   +0.06%     
==========================================
  Files          10       10              
  Lines         486      481       -5     
==========================================
- Hits          421      417       -4     
+ Misses         65       64       -1     
Impacted Files Coverage Δ
src/vanilla.jl 90.64% <100.00%> (+0.36%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@BoZenKhaa BoZenKhaa mentioned this pull request Oct 11, 2022
@BoZenKhaa
Copy link
Contributor Author

Unless @zsunberg or anyone else objects, I will merge this since it seems to trip up people regularly (https://github.com)/JuliaPOMDP/MCTS.jl/issues/63

@BoZenKhaa BoZenKhaa requested review from rejuvyesh and zsunberg and removed request for zsunberg February 6, 2023 11:26
Copy link
Member

@rejuvyesh rejuvyesh left a comment

Choose a reason for hiding this comment

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

Apologies, I missed this. LGTM!

Copy link
Member

@zsunberg zsunberg left a comment

Choose a reason for hiding this comment

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

This looks good to me. The concept of "creating" a state node is a bit weird in MCTS because you have to add to the tree to create one. But I agree that this is clearer than it was before. Thanks @BoZenKhaa for your thoughtful contribution.

@zsunberg zsunberg merged commit 3971959 into JuliaPOMDP:master Feb 7, 2023
@BoZenKhaa BoZenKhaa deleted the state_node_rename branch February 11, 2023 13:07
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.

3 participants