update
This commit is contained in:
@@ -83,8 +83,6 @@ function decisionMaker(a::T1, state::T2) where {T1<:agent, T2<:AbstractDict}
|
|||||||
# (trajectories)
|
# (trajectories)
|
||||||
# """
|
# """
|
||||||
|
|
||||||
|
|
||||||
#[WORKING]
|
|
||||||
_prompt =
|
_prompt =
|
||||||
"""
|
"""
|
||||||
You are a helpful sommelier working for a wine store.
|
You are a helpful sommelier working for a wine store.
|
||||||
|
|||||||
@@ -135,12 +135,13 @@ function expand(a::T1, node::MCTSNode, state::T2, decisionMaker::Function, state
|
|||||||
# sampling action from decisionMaker
|
# sampling action from decisionMaker
|
||||||
for sample in 1:n
|
for sample in 1:n
|
||||||
thought = decisionMaker(a, state)
|
thought = decisionMaker(a, state)
|
||||||
error("--> expand")
|
|
||||||
newState = transition(node.state, action) #[] Implement your transition function
|
newState = transition(node.state, action) #[] Implement your transition function
|
||||||
if newState ∉ keys(node.children)
|
if newState ∉ keys(node.children)
|
||||||
node.children[newState] = MCTSNode(newState, 0, 0.0, Dict{T, MCTSNode}())
|
node.children[newState] = MCTSNode(newState, 0, 0.0, Dict{T, MCTSNode}())
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
error("--> expand")
|
||||||
end
|
end
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user