update
This commit is contained in:
@@ -332,6 +332,9 @@ end
|
|||||||
julia>
|
julia>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
# TODO
|
||||||
|
[PENDING] add Reflect()
|
||||||
|
|
||||||
# Signature
|
# Signature
|
||||||
"""
|
"""
|
||||||
function isterminal(state::T)::Tuple{Bool, <:Number} where {T<:AbstractDict}
|
function isterminal(state::T)::Tuple{Bool, <:Number} where {T<:AbstractDict}
|
||||||
|
|||||||
@@ -415,6 +415,7 @@ julia>
|
|||||||
|
|
||||||
# TODO
|
# TODO
|
||||||
[] update docstring
|
[] update docstring
|
||||||
|
[PENDING] return best plan
|
||||||
|
|
||||||
# Signature
|
# Signature
|
||||||
"""
|
"""
|
||||||
@@ -441,7 +442,6 @@ function runMCTS(
|
|||||||
expand(a, node, decisionMaker, progressValueEstimator, isterminal, n=n)
|
expand(a, node, decisionMaker, progressValueEstimator, isterminal, n=n)
|
||||||
|
|
||||||
leaf_node = selectChildNode(node)
|
leaf_node = selectChildNode(node)
|
||||||
# BUG i didn't assign parent node for this leaf node yet
|
|
||||||
simTrajectoryReward = simulate(a, leaf_node, decisionMaker, progressValueEstimator,
|
simTrajectoryReward = simulate(a, leaf_node, decisionMaker, progressValueEstimator,
|
||||||
isterminal, maxDepth, n=n)
|
isterminal, maxDepth, n=n)
|
||||||
backpropagate(leaf_node, simTrajectoryReward)
|
backpropagate(leaf_node, simTrajectoryReward)
|
||||||
|
|||||||
Reference in New Issue
Block a user