update
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user