This commit is contained in:
narawat lamaiin
2024-06-05 09:27:07 +07:00
parent 3269b27237
commit 22efd49844
2 changed files with 2 additions and 2 deletions

View File

@@ -55,7 +55,7 @@ function runMCTS(
maxDepth::Integer=3, maxDepth::Integer=3,
maxiterations::Integer=10, maxiterations::Integer=10,
explorationweight::Number=1.0, explorationweight::Number=1.0,
) where {T1<:AbstractDict} )
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}())

View File

@@ -288,7 +288,7 @@ julia>
""" """
function simulate(node::MCTSNode, transition::Function, args...; function simulate(node::MCTSNode, transition::Function, args...;
maxDepth::Integer=3, totalsample::Integer=3 maxDepth::Integer=3, totalsample::Integer=3
)::Union{Tuple{Number, Dict{Symbol, <:Any}}, Tuple{Number, Nothing}} where {T<:AbstractDict} )::Union{Tuple{Number, Dict{Symbol, <:Any}}, Tuple{Number, Nothing}}
simTrajectoryReward = 0.0 simTrajectoryReward = 0.0
terminalstate = nothing terminalstate = nothing