mirror of
https://gitlab.rlp.net/mobitar/ReCo.jl.git
synced 2024-11-08 22:21:08 +00:00
Specify trajectory types
This commit is contained in:
parent
0cf59e04a5
commit
eba1e53cd2
1 changed files with 5 additions and 1 deletions
|
@ -298,7 +298,11 @@ function gen_agent(n_states::Int64, n_actions::Int64, ϵ_stable::Float64)
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
return Agent(; policy=policy, trajectory=VectorSARTTrajectory())
|
trajectory = VectorSARTTrajectory(;
|
||||||
|
state=Int64, action=Int64, reward=Float64, terminal=Bool
|
||||||
|
)
|
||||||
|
|
||||||
|
return Agent(; policy=policy, trajectory=trajectory)
|
||||||
end
|
end
|
||||||
|
|
||||||
function run_rl(;
|
function run_rl(;
|
||||||
|
|
Loading…
Reference in a new issue