This commit is contained in:
narawat lamaiin
2024-05-06 13:51:29 +07:00
parent cfca2b1839
commit dc584e5381
2 changed files with 2 additions and 20 deletions

View File

@@ -163,7 +163,7 @@ julia>
# TODO
- [] update docstring
- [WORKING] implement the function
- [x] implement the function
- [] check for the terminal state (node.reward != 0), break if it is terminal state
# Signature
@@ -185,24 +185,6 @@ function simulate(a, node::MCTSNode, decisionMaker::Function, progressValueEstim
return simTrajectoryReward
end
# function simulate(a, node::MCTSNode, decisionMaker::Function, progressValueEstimator::Function,
# isterminal::Function, max_depth::Int; n=3)::Number
# simTrajectoryReward = 0.0
# for _ in 1:max_depth
# node = selectChildNode(node)
# simTrajectoryReward += node.reward
# if node.isterminal
# break
# else
# expand(a, node, decisionMaker, progressValueEstimator, isterminal, n=n)
# end
# end
# return simTrajectoryReward
# end
"""