update
This commit is contained in:
@@ -84,10 +84,8 @@ function runMCTS(
|
||||
backpropagate(leafNode, simTrajectoryReward)
|
||||
end
|
||||
|
||||
# stop if the tree early stop condition is met
|
||||
if typeof(earlystop) <: Function
|
||||
result = earlystop(node.state)
|
||||
|
||||
# stop if the early stop condition is met
|
||||
if typeof(earlystop) <: Function && earlystop(node.state)
|
||||
break
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user