This commit is contained in:
narawat lamaiin
2024-10-14 12:47:59 +07:00
parent 351bccc059
commit 3338085567

View File

@@ -84,10 +84,8 @@ function runMCTS(
backpropagate(leafNode, simTrajectoryReward) backpropagate(leafNode, simTrajectoryReward)
end end
# stop if the tree early stop condition is met # stop if the early stop condition is met
if typeof(earlystop) <: Function if typeof(earlystop) <: Function && earlystop(node.state)
result = earlystop(node.state)
break break
end end
end end