Giter VIP home page Giter VIP logo

compressedbeliefmdps.jl's Issues

TagBot trigger issue

This issue is used to trigger TagBot; feel free to unsubscribe.

If you haven't already, you should update your TagBot.yml to include issue comment triggers.
Please see this post on Discourse for instructions and more details.

If you'd like for me to do this for you, comment TagBot fix on this issue.
I'll open a PR within a few hours, please be patient!

ParticleFilters fails on discrete POMDPs

Steps to recreate:

using POMDPs, POMDPModels, POMDPTools
using ParticleFilters

using CompressedBeliefMDPs

using Random
Random.seed!(1)

pomdp = BabyPOMDP()
updater = SIRParticleFilter(pomdp, 1000)
solver = CompressedBeliefSolver(pomdp; updater=updater)
policy = solve(solver, pomdp)

Output:

julia> include("arena/filter_test.jl")
ERROR: LoadError: DimensionMismatch: dimensions must match: a has dims (Base.OneTo(1000),), b has dims (Base.OneTo(2),), mismatch at 1
Stacktrace:
  [1] promote_shape
    @ ./indices.jl:178 [inlined]
  [2] promote_shape
    @ ./indices.jl:169 [inlined]
  [3] -(A::Vector{Float64}, B::Vector{Float64})
    @ Base ./arraymath.jl:7
  [4] centralize(x::Vector{Float64}, m::Vector{Float64})
    @ MultivariateStats ~/.julia/packages/MultivariateStats/zLpz8/src/common.jl:15
  [5] predict(M::MultivariateStats.PCA{Float64}, x::Vector{Float64})
    @ MultivariateStats ~/.julia/packages/MultivariateStats/zLpz8/src/pca.jl:122
  [6] (::MVSCompressor{MultivariateStats.PCA})(beliefs::Vector{Float64})
    @ CompressedBeliefMDPs ~/VSCodeProjects/BeliefCompression/CompressedBeliefMDPs/src/compressors/mvs_compressors.jl:21
  [7] CompressedBeliefMDP(pomdp::BabyPOMDP, updater::BasicParticleFilter{…}, compressor::MVSCompressor{…})
    @ CompressedBeliefMDPs ~/VSCodeProjects/BeliefCompression/CompressedBeliefMDPs/src/cbmdp.jl:45
  [8] _make_compressed_belief_MDP(pomdp::BabyPOMDP, sampler::BeliefExpansionSampler, updater::BasicParticleFilter{…}, compressor::MVSCompressor{…})
    @ CompressedBeliefMDPs ~/VSCodeProjects/BeliefCompression/CompressedBeliefMDPs/src/solver.jl:96
  [9] CompressedBeliefSolver(pomdp::BabyPOMDP; updater::BasicParticleFilter{…}, sampler::BeliefExpansionSampler, compressor::MVSCompressor{…}, interp::Nothing, k::Int64, verbose::Bool, max_iterations::Int64, n_generative_samples::Int64, belres::Float64)
    @ CompressedBeliefMDPs ~/VSCodeProjects/BeliefCompression/CompressedBeliefMDPs/src/solver.jl:127
 [10] top-level scope
    @ ~/VSCodeProjects/BeliefCompression/arena/filter_test.jl:12
 [11] include(fname::String)
    @ Base.MainInclude ./client.jl:489
 [12] top-level scope
    @ REPL[1]:1
 [13] top-level scope
    @ ~/.julia/packages/Infiltrator/TNlCu/src/Infiltrator.jl:798
in expression starting at /Users/logan/VSCodeProjects/BeliefCompression/arena/filter_test.jl:12
Some type information was truncated. Use `show(err)` to see complete types.

Add code coverage

I think you will need to uncomment the relevant lines in CI.yml and add the badge to the readme.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.