mirror of
https://gitlab.rlp.net/mobitar/ReCo.jl.git
synced 2024-11-08 22:21:08 +00:00
export NearestNeighbourEnv
This commit is contained in:
parent
9e3b71197c
commit
e8a5d4f684
2 changed files with 11 additions and 4 deletions
|
@ -1,6 +1,6 @@
|
||||||
module RL
|
module RL
|
||||||
|
|
||||||
export run_rl, LocalCOMWithAdditionalShapeRewardEnv, OriginEnv
|
export run_rl, LocalCOMWithAdditionalShapeRewardEnv, OriginEnv, NearestNeighbourEnv
|
||||||
|
|
||||||
using Base: OneTo
|
using Base: OneTo
|
||||||
|
|
||||||
|
@ -29,8 +29,8 @@ include("Reward.jl")
|
||||||
function gen_agent(
|
function gen_agent(
|
||||||
n_states::Int64, n_actions::Int64, ϵ_stable::Float64, reward_discount::Float64
|
n_states::Int64, n_actions::Int64, ϵ_stable::Float64, reward_discount::Float64
|
||||||
)
|
)
|
||||||
# TODO: Optimize warmup and decay
|
# TODO: Optimize warming up and decay
|
||||||
warmup_steps = 500_000
|
warmup_steps = 400_000
|
||||||
decay_steps = 5_000_000
|
decay_steps = 5_000_000
|
||||||
|
|
||||||
policy = QBasedPolicy(;
|
policy = QBasedPolicy(;
|
||||||
|
@ -188,5 +188,6 @@ end
|
||||||
|
|
||||||
include("Envs/LocalCOMWithAdditionalShapeRewardEnv.jl")
|
include("Envs/LocalCOMWithAdditionalShapeRewardEnv.jl")
|
||||||
include("Envs/OriginEnv.jl")
|
include("Envs/OriginEnv.jl")
|
||||||
|
include("Envs/NearestNeighbourEnv.jl")
|
||||||
|
|
||||||
end # module
|
end # module
|
|
@ -1,7 +1,13 @@
|
||||||
module ReCo
|
module ReCo
|
||||||
|
|
||||||
export init_sim,
|
export init_sim,
|
||||||
run_sim, run_rl, animate, plot_snapshot, LocalCOMWithAdditionalShapeRewardEnv, OriginEnv
|
run_sim,
|
||||||
|
run_rl,
|
||||||
|
animate,
|
||||||
|
plot_snapshot,
|
||||||
|
LocalCOMWithAdditionalShapeRewardEnv,
|
||||||
|
OriginEnv,
|
||||||
|
NearestNeighbourEnv
|
||||||
|
|
||||||
using StaticArrays: SVector
|
using StaticArrays: SVector
|
||||||
using JLD2: JLD2
|
using JLD2: JLD2
|
||||||
|
|
Loading…
Reference in a new issue