Skip to content

Use map_optimize in particle filter #533

@lwang19-ai

Description

@lwang19-ai

Is it possible to use map_optimize in the particle filter process?
I did something like:

state_atm = Gen.initialize_particle_filter(unfold_atm, (start_ass_time,), init_obs_atm, num_particles)
selection = Gen.select(:chain => 1 => :u => 4 => :u)
Gen.map_optimize(state_atm.traces[1], selection)

Then I get the error:
MethodError: no method matching zero(::Type{Any})
The error is from line choice_gradients in the map_optimize function. I am unsure if it's because of my implementation or if it's not supported here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions