Skip to content

Commit

Permalink
Rename benchmarks and add notes
Browse files Browse the repository at this point in the history
  • Loading branch information
bkraske committed Jul 3, 2024
1 parent 4a580ef commit e79444c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
2 changes: 2 additions & 0 deletions benchmark/LD_disc_o.jl → pr32_benchmarks/LD_disc_o.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#LightDark from POMDPModels.jl, modified for discrete binned observations

using Distributions
# A one-dimensional light-dark problem, originally used to test MCVI
# A very simple POMDP with continuous state and observation spaces.
Expand Down
File renamed without changes.
6 changes: 5 additions & 1 deletion benchmark/benchmarks.jl → pr32_benchmarks/benchmarks.jl
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
#Benchmarks for ARDESPOT.jl PR No. 32 (Use OrderedDict)

#Note: Uses HistoryRecorder instead of calls to action directly. This may add additional noise.

using Pkg
Pkg.activate(".")
using ARDESPOT

Pkg.activate("benchmark")
Pkg.activate("pr32_benchmarks")
using BenchmarkTools

using POMDPs
Expand Down
3 changes: 2 additions & 1 deletion benchmark/ld_policies.jl → pr32_benchmarks/ld_policies.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#LD Policies for Bounds
struct LDPolicy{M<:POMDP,S}<:Policy
m::M
particle_dict::Dict{S,Float64}
Expand All @@ -11,7 +12,7 @@ function LDPolicy(m::LightDark1D{S}) where S
return LDPolicy(m,Dict{S,Float64}(),-1,planner)
end

##Tyler's map_bel
##Tyler's map_bel:
@inline function get_incr!(h::Dict{K,V}, key::K, v) where {K,V} # modified from dict.jl
index = Base.ht_keyindex2!(h, key)

Expand Down

0 comments on commit e79444c

Please sign in to comment.