What is the alternative to Python gym.spaces.Box() in Julia?

There’s

julia> using IntervalArithmetic

julia> X = (1..2) × (3..4) × (10..∞)
[1, 2] × [3, 4] × [10, ∞]

julia> typeof(X)
IntervalBox{3, Float64}

from the IntervalArithmetic.jl package (of which I am an author).

Also check out DomainSets.jl and LazySets.jl

EDIT: It would also be not to hard to make a type like this yourself. It rather depends what you want to then do with it.

6 Likes