POMDPs.jl
POMDPs.jl copied to clipboard
We need some convenient space types
Right now it is inconvenient to implement continuous action spaces. We need some convenient space types, like Box or something. Unclear if this already exists somewhere or it should go into POMDPModelTools or some new package named with some combination of the words "Box" "Interval" "Real" "Multidimensional" "Vector"
This might be useful: https://github.com/invenia/Intervals.jl
Are simple sets like Box enough? Or do we need support for arbitrary polytopes? It sounds like sampling may become rather tedious at some point.
This might be useful: https://github.com/invenia/Intervals.jl
Yes, something like that that someone has already implemented would be great! There are two problems with that particular package though:
- It doesn't have
randimplemented - It doesn't work like we would want:
julia> [1.5,2.5] in Interval([1,1], [2,2]) true
Are there any other packages?
Are simple sets like Box enough?
Yes, I think boxes are enough for now! if people want polytopes they can write their own space objects easily enough.
The other thing that we might want is cartesian products, i.e. [0,1] x {true, false}
Maybe we should just make a small implementation for ourselves since hybrid spaces might be already quite a special needs. Product distributions are already supported by Distribitions.jlso the rand interface should be easy to implement for these simple spaces.
There is this as well that we could take inspiration from: https://github.com/FluxML/Gym.jl/tree/master/src/Spaces
we could also use that directly but I don't know if we want a dependency on Gym.jl