mirror of
https://gitlab.rlp.net/mobitar/ReCo.jl.git
synced 2024-12-21 00:51:21 +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
|
||||
|
||||
export run_rl, LocalCOMWithAdditionalShapeRewardEnv, OriginEnv
|
||||
export run_rl, LocalCOMWithAdditionalShapeRewardEnv, OriginEnv, NearestNeighbourEnv
|
||||
|
||||
using Base: OneTo
|
||||
|
||||
|
@ -29,8 +29,8 @@ include("Reward.jl")
|
|||
function gen_agent(
|
||||
n_states::Int64, n_actions::Int64, ϵ_stable::Float64, reward_discount::Float64
|
||||
)
|
||||
# TODO: Optimize warmup and decay
|
||||
warmup_steps = 500_000
|
||||
# TODO: Optimize warming up and decay
|
||||
warmup_steps = 400_000
|
||||
decay_steps = 5_000_000
|
||||
|
||||
policy = QBasedPolicy(;
|
||||
|
@ -188,5 +188,6 @@ end
|
|||
|
||||
include("Envs/LocalCOMWithAdditionalShapeRewardEnv.jl")
|
||||
include("Envs/OriginEnv.jl")
|
||||
include("Envs/NearestNeighbourEnv.jl")
|
||||
|
||||
end # module
|
|
@ -1,7 +1,13 @@
|
|||
module ReCo
|
||||
|
||||
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 JLD2: JLD2
|
||||
|
|
Loading…
Reference in a new issue