Skip to content

Commit

Permalink
removed debugging packages
Browse files Browse the repository at this point in the history
  • Loading branch information
FlyingWorkshop committed Jul 15, 2024
1 parent dbeb178 commit 739e99a
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 23 deletions.
4 changes: 1 addition & 3 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ Bijections = "e2ed5e7c-b2de-5872-ae92-c73ca462fb04"
Distances = "b4f34e82-e78d-54a5-968a-f98e89d6e8f7"
Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f"
Flux = "587475ba-b771-5e3f-ad9e-33799f191a9c"
Infiltrator = "5903a43b-9cc3-4c30-8d17-598619ec4e9b"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
LocalApproximationValueIteration = "a40420fb-f401-52da-a663-f502e5b95060"
LocalFunctionApproximation = "db97f5ab-fc25-52dd-a8f9-02a257c35074"
Expand All @@ -24,15 +23,13 @@ ParticleFilters = "c8b314e2-9260-5cf8-ae76-3be7461ca6d0"
Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
ProgressMeter = "92933f4c-e287-5a05-a399-4b506db050ca"
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
Revise = "295af30f-e4ad-537b-8983-00126c2a3abe"
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"

[compat]
Bijections = "0.1"
Distances = "0.10"
Distributions = "0.25"
Flux = "0.14"
Infiltrator = "1"
LocalApproximationValueIteration = "0.4.3"
LocalFunctionApproximation = "1.1.1"
MCTS = "0.5.5"
Expand All @@ -44,6 +41,7 @@ POMDPTools = "0.1.6, 1"
POMDPs = "0.9.6, 1"
Parameters = "0.12"
ParticleFilters = "0.5.6"
Plots = "1"
StaticArrays = "1.9.3"
julia = "1"

Expand Down
3 changes: 0 additions & 3 deletions scripts/kl.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
using Revise
using Infiltrator

using Plots
using Random
using MultivariateStats
Expand Down
3 changes: 0 additions & 3 deletions scripts/l2.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
using Revise
using Infiltrator

using Plots
using Random
using MultivariateStats
Expand Down
3 changes: 0 additions & 3 deletions scripts/recon.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
using Revise
using Infiltrator

using Plots
using Random
using MultivariateStats
Expand Down
3 changes: 0 additions & 3 deletions src/CompressedBeliefMDPs.jl
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
module CompressedBeliefMDPs

using Infiltrator
# TODO: remove plots, revise, Infiltrator

# Packages from JuliaPOMDPs
using POMDPs
using POMDPTools
Expand Down
14 changes: 6 additions & 8 deletions src/samplers/rollout.jl
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,9 @@ function (s::PolicySampler)(pomdp::POMDP)
return unique!(B)
end
a = action(s.policy, b)
# NOTE: backwards compatible
# if isterminal(mdp.pomdp, rand(s.rng, b))
# break
# end
if isterminal(mdp.pomdp, rand(s.rng, b))
break
end
b = @gen(:sp)(mdp, b, a, s.rng)
push!(B, b)
if s.verbose
Expand Down Expand Up @@ -189,10 +188,9 @@ function (s::ExplorationPolicySampler)(pomdp::POMDP)
return unique!(B)
end
a = action(s.explorer, s.on_policy, k, b)
# NOTE: backwards compatible
# if isterminal(mdp.pomdp, rand(s.rng, b))
# break
# end
if isterminal(mdp.pomdp, rand(s.rng, b))
break
end
b = @gen(:sp)(mdp, b, a, s.rng)
push!(B, b)
if s.verbose
Expand Down

0 comments on commit 739e99a

Please sign in to comment.