update
This commit is contained in:
@@ -32,8 +32,8 @@ using ..type, ..mcts
|
|||||||
aggressively explore new state.
|
aggressively explore new state.
|
||||||
|
|
||||||
# Return
|
# Return
|
||||||
- `plan::Vector{Dict}`
|
- `(bestNextState, BestFinalState)::Tuple`
|
||||||
best plan
|
the best next state and the best final state
|
||||||
|
|
||||||
# Example
|
# Example
|
||||||
```jldoctest
|
```jldoctest
|
||||||
@@ -41,8 +41,7 @@ julia>
|
|||||||
```
|
```
|
||||||
|
|
||||||
# TODO
|
# TODO
|
||||||
[x] update docstring
|
[] update example
|
||||||
[] return best action
|
|
||||||
|
|
||||||
# Signature
|
# Signature
|
||||||
"""
|
"""
|
||||||
@@ -55,7 +54,7 @@ function runMCTS(
|
|||||||
maxdepth::Integer=3,
|
maxdepth::Integer=3,
|
||||||
maxiterations::Integer=10,
|
maxiterations::Integer=10,
|
||||||
explorationweight::Number=1.0,
|
explorationweight::Number=1.0,
|
||||||
)
|
)::Tuple
|
||||||
|
|
||||||
root = MCTSNode("root", initialstate, 0, 0, 0, 0, false, nothing, Dict{String, MCTSNode}())
|
root = MCTSNode("root", initialstate, 0, 0, 0, 0, false, nothing, Dict{String, MCTSNode}())
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user