This commit is contained in:
narawat lamaiin
2024-05-06 21:27:50 +07:00
parent f4729b7039
commit 8cc5606ae8

View File

@@ -126,7 +126,7 @@ julia>
# TODO # TODO
[] update docstring [] update docstring
[] try loop should limit to 3 times. if not succeed, skip [] try loop should limit to 3 times. if not succeed, skip
[] newNodeKey ∉ keys(node.children). New state may have semantic vector close enought to one of existing child state. Which can be assume that they are the same state semantically-wise.
# Signature # Signature
""" """
function expand(a::T1, node::MCTSNode, decisionMaker::Function, function expand(a::T1, node::MCTSNode, decisionMaker::Function,
@@ -190,7 +190,7 @@ function simulate(a, node::MCTSNode, decisionMaker::Function, progressValueEstim
node = selectChildNode(node) node = selectChildNode(node)
end end
end end
#BUG new expanded state has reward but it is not included because it is over maxdept by 1 state
return simTrajectoryReward return simTrajectoryReward
end end