update
This commit is contained in:
@@ -177,9 +177,14 @@ function simulate(a, node::MCTSNode, decisionMaker::Function, progressValueEstim
|
||||
if node.isterminal
|
||||
break
|
||||
else
|
||||
try
|
||||
simTrajectoryReward += node.reward
|
||||
expand(a, node, decisionMaker, progressValueEstimator, isterminal, n=n)
|
||||
node = selectChildNode(node)
|
||||
catch
|
||||
# if error occurs, break and try again later
|
||||
break
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user